Google App Engine编程

Google App Engine编程 pdf epub mobi txt 电子书 下载 2026

出版者:
作者:Dan Sanderson 丹·桑德森
出品人:
页数:367
译者:
出版时间:2011-1
价格:59.00元
装帧:
isbn号码:9787564124939
丛书系列:
图书标签:
  • 程序设计
  • 放下
  • 广图
  • 可扩展服务
  • 借书
  • 云计算
  • web应用
  • it.google
  • Google App Engine
  • Python
  • Java
  • Web应用
  • 云计算
  • Google Cloud
  • 服务器less
  • 开发
  • 编程
  • 部署
想要找书就要到 小美书屋
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

Google App Engine 编程(Programming Google App Engine)简介:

As one of today's cloud computing services, Google App Engine does more than provide access to a large system of servers. It also offers you a simple model for building applications that scale automatically to accommodate millions of users. With Programming Google App Engine, you'll get expert practical guidance that will help you make the best use of this powerful platform. Google engineer Dan Sanderson shows you how to design your applications for scalability, including ways to perform common development tasks using App Engine's APIs and scalable services.

You'll learn about App Engine's application server architecture, runtime environments, and scalable datastore for distributing data, as well as techniques for optimizing your application. App Engine offers nearly unlimited computing power, and this book provides clear and concise instructions for getting the most from it right from the source.

Discover the differences between traditional web development and development with App Engine

Learn the details of App Engine's Python and Java runtime environments

Understand how App Engine handles web requests and executes application code

Learn how to use App Engine's scalable datastore, including queries and indexes, transactions, and data modeling

Use task queues to parallelize and distribute work across the infrastructure

Deploy and manage applications with ease

作者简介

Dan Sanderson是一名技术作者,也是一名软件工程师。他有十多年的Web领域从业经验,服务过的企业有Amazon.com以及Walt Disney InternetGroup等。

目录信息

Authentication 59
Uploading the Application 60
vii
Download at WoweBook.Com
Introducing the Administration Console 61
3. Handling Web Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
The App Engine Architecture 64
Configuring the Frontend 66
Configuring a Python App 66
Configuring a Java App 68
Domain Names 69
App IDs and Versions 70
Request Handlers 72
Static Files and Resource Files 75
Secure Connections 81
Authorization with Google Accounts 83
How the App Is Run 85
The Python Runtime Environment 86
The Java Runtime Environment 87
The Sandbox 88
App Caching 89
Logging 93
Quotas and Limits 96
Request Limits 96
CPU Limits 97
Service Limits 98
Deployment Limits 98
Billable Quotas 100
Resource Usage Headers 101
4. Datastore Entities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Entities, Keys, and Properties 104
Introducing the Python Datastore API 105
Introducing the Java Datastore API 108
Property Values 110
Strings, Text, and Blobs 112
Unset Versus the Null Value 112
Multivalued Properties 113
Keys and Key Objects 114
Using Entities 116
Getting Entities Using Keys 116
Inspecting Entity Objects 117
Saving Entities 118
Deleting Entities 119
viii | Table of Contents
Download at WoweBook.Com
5. Datastore Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Queries and Kinds 122
Query Results and Keys 122
GQL 123
The Python Query API 126
The Query Class 127
GQL in Python 128
Retrieving Results 129
Keys-Only Queries 131
The Java Query API 132
Keys-Only Queries in Java 133
Introducing Indexes 134
Automatic Indexes and Simple Queries 136
All Entities of a Kind 137
One Equality Filter 137
Greater-Than and Less-Than Filters 138
One Sort Order 139
Queries on Keys 141
Kindless Queries 142
Custom Indexes and Complex Queries 143
Multiple Sort Orders 143
Filters on Multiple Properties 144
Multiple Equality Filters 147
Not-Equal and IN Filters 150
Unset and Nonindexed Properties 150
Sort Orders and Value Types 152
Queries and Multivalued Properties 153
A Simple Example 153
MVPs in Python 154
MVPs and Equality Filters 155
MVPs and Inequality Filters 156
MVPs and Sort Orders 157
Exploding Indexes 159
Configuring Indexes 159
Index Configuration for Python 160
Index Configuration for Java 161
6. Datastore Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Entities and Entity Groups 165
Keys, Paths, and Ancestors 166
Ancestor Queries 167
What Can Happen in a Transaction 168
Transactional Reads 169
Table of Contents | ix
Download at WoweBook.Com
Transactions in Python 169
Transactions in Java 172
How Entities Are Updated 175
How Entities Are Read 178
Batch Updates 179
How Indexes Are Updated 180
7. Data Modeling with Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Models and Properties 184
Property Declarations 185
Property Value Types 186
Property Validation 187
Nonindexed Properties 188
Automatic Values 189
List Properties 190
Models and Schema Migration 191
Modeling Relationships 192
One-to-Many Relationships 195
One-to-One Relationships 195
Many-to-Many Relationships 196
Model Inheritance 198
Queries and PolyModels 199
Creating Your Own Property Classes 200
Validating Property Values 201
Marshaling Value Types 202
Customizing Default Values 204
Accepting Arguments 205
8. The Java Persistence API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Setting Up JPA 208
Entities and Keys 209
Entity Properties 212
Embedded Objects 213
Saving, Fetching, and Deleting Objects 214
Transactions in JPA 216
Queries and JPQL 217
Relationships 220
For More Information 225
9. The Memory Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
The Python Memcache API 228
Setting and Getting Values in Python 229
Setting and Getting Multiple Values 230
x | Table of Contents
Download at WoweBook.Com
Memcache Namespaces 231
Cache Expiration 231
Deleting Keys 232
Memcache Counters 233
Cache Statistics 233
The Java Memcache API 234
10. Fetching URLs and Web Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Fetching URLs in Python 240
Fetching URLs in Java 242
Asynchronous Requests in Python 244
RPC Objects 246
Processing Results with Callbacks 247
11. Sending and Receiving Mail and Instant Messages . . . . . . . . . . . . . . . . . . . . . . . . . 251
Enabling Inbound Services 253
Sending Email Messages 254
Sender Addresses 255
Recipients 256
Attachments 257
Sending Email in Python 258
Sending Email in Java 261
Receiving Email Messages 263
Receiving Email in Python 264
Receiving Email in Java 266
Sending XMPP Messages 267
Sending a Chat Invitation 269
Sending a Chat Message 270
Checking a Google Talk User’s Status 271
Receiving XMPP Messages 272
Receiving XMPP Messages in Python 273
Receiving XMPP Messages in Java 275
12. Bulk Data Operations and Remote Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Setting Up the Remote API for Python 278
Setting Up the Remote API for Java 279
Using the Bulk Loader Tool 280
Installing SQLite 280
Backup and Restore 281
Uploading Data 282
Downloading Data 286
Controlling the Bulk Loader 289
Using the Remote Shell Tool 290
Table of Contents | xi
Download at WoweBook.Com
Using the Remote API from a Script 291
13. Task Queues and Scheduled Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Task Queues 294
Processing Rates and Token Buckets 295
Elements of a Task 296
Task Handlers and Retries 297
Testing and Managing Tasks 299
Using Task Queues in Python 299
Using Task Queues in Java 304
Transactional Task Enqueueing 307
Scheduled Tasks 308
14. The Django Web Application Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Installing Django 314
Creating a Django Project 315
The Request Handler Script 316
The Django App Engine Helper 317
Creating a Django Application 320
Using App Engine Models With Django 322
Using Django Unit Tests and Fixtures 324
Using Django Forms 327
15. Deploying and Managing Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Uploading an Application 334
Using Versions 335
Managing Service Configuration 337
Managing Indexes 337
Browsing and Downloading Logs 339
Inspecting the Datastore 342
Application Settings 342
Managing Developers 343
Quotas and Billing 344
Getting Help 345
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
· · · · · · (收起)

读后感

评分

嗯,网上下载的电子版,看完了目录,内容安排的不错,对于有web开发基础的人来说,非常好,推荐! Amazon的评论,也多有赞美之辞, http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/product-reviews/059652272X/ref=dp_top_cm_cr_acr_txt?ie=UTF8&showVi...  

评分

之前看过原版电子版,后来买了这本翻译版. 真的很不错. 不过对于没有web开发经验的人来说, 其实我是建议先看 charles severance 那本《using google app engine》先。。。  

评分

之前看过原版电子版,后来买了这本翻译版. 真的很不错. 不过对于没有web开发经验的人来说, 其实我是建议先看 charles severance 那本《using google app engine》先。。。  

评分

嗯,网上下载的电子版,看完了目录,内容安排的不错,对于有web开发基础的人来说,非常好,推荐! Amazon的评论,也多有赞美之辞, http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/product-reviews/059652272X/ref=dp_top_cm_cr_acr_txt?ie=UTF8&showVi...  

评分

之前看过原版电子版,后来买了这本翻译版. 真的很不错. 不过对于没有web开发经验的人来说, 其实我是建议先看 charles severance 那本《using google app engine》先。。。  

用户评价

评分

从排版的细节来看,作者对读者的友好度考虑得非常周到。书中大量的代码示例都采用了高质量的语法高亮,关键 API 的调用和参数说明都用不同的字体或者边框进行了清晰的区分,这一点在快速定位信息时显得尤为重要。而且,很多核心概念的解释旁边,都配有简洁的架构图或流程图,这些视觉辅助工具极大地降低了理解复杂逻辑的门槛。我发现自己不再需要频繁地在代码和文字之间来回切换,因为图文的结合已经把大部分信息都高效地传达出来了。此外,书中的附录部分也做得非常扎实,包含了一些常用命令的速查表和一些常见问题的排错指南,这对于日常开发中的“救急”情况来说,简直是雪中送炭。一本优秀的技术书籍,不应该只是一个知识的容器,更应该是一个能够提高效率的工具,这本书在这一点上做得非常到位,让人感到物超所值,值得反复研读。

评分

这本书的封面设计倒是挺抓人眼球的,那种深邃的蓝色调配上简洁的白色字体,给人一种既专业又充满未来感的印象。我拿到手的时候,首先被它的厚度震住了,感觉沉甸甸的,仿佛里面真的蕴含了构建下一代互联网应用的全部秘籍。内页的纸张质感也算上乘,印刷清晰,排版也比较合理,这一点对于长时间阅读技术书籍来说非常重要,毕竟眼睛是革命的本钱。我花了一下午时间大致翻阅了一下目录,发现它对整个平台的基础概念讲解得相当透彻,从最底层的架构原理到更高层次的服务调用,都做了一个比较完整的梳理。尤其是它对某些核心概念的阐述,似乎不是那种教科书式的干巴巴的描述,而是融入了一些实际的案例和思考,这点让我对后续的深入学习抱持了很高的期待。我对这类平台型技术一直很感兴趣,总觉得掌握了它,就相当于拿到了通往高效开发的一把钥匙。这本书的体量和内容的广度,似乎都在暗示着,它不仅仅是一本“速成指南”,更像是一本可以放在案头,随时查阅的“工具箱”,希望能尽快沉下心来,从头到尾把它啃下来,看看它到底能带给我多少惊喜。

评分

我购买这本书的初衷,很大程度上是想解决我在实际工作中遇到的一个棘手问题:如何构建一个高可用、可伸缩的后台服务。市面上很多教程都过于简化了生产环境的复杂性,只展示了“Hello World”级别的成功案例。然而,这本书似乎很早就意识到了读者的这种需求,它没有回避那些现实中的挑战。在讲解部署流程时,它详细地描述了蓝绿部署和金丝雀发布的原理,并且结合平台的特性,给出了具体的实施步骤和需要注意的陷阱。我尤其欣赏它在错误处理和监控告警方面的章节,内容详实且贴近实战。作者很坦诚地分享了一些他们在构建大型应用时踩过的“坑”,这对于我们这些正在摸索前行的人来说,无疑是宝贵的经验教训,能让我们少走很多弯路。这种坦诚和深入,让这本书的实用价值瞬间飙升,不再是那种纸上谈兵的理论著作,而是一本可以信赖的“实战手册”。

评分

说实话,我一开始对这种面向特定云平台的编程指南总是抱持着一丝谨慎的态度,因为技术更新的速度实在太快了,很多厚厚的书可能在出版后没多久,某些API就已经被弃用或者有了重大的版本迭代。这本书在这一点上的处理方式倒是值得称赞。它似乎没有过多纠缠于那些转瞬即逝的细节,而是把更多的笔墨放在了那些更具普适性的设计哲学和最佳实践上。例如,它深入探讨了微服务在云环境下的应用模式,以及如何优雅地处理分布式事务,这些内容即便是平台本身发生了一些变化,其指导思想依然是站得住脚的。阅读过程中,我发现作者非常注重“为什么”而不是仅仅停留在“怎么做”,这种深层次的追问,极大地提升了书籍的价值密度。我记得有一章专门讲了数据持久化的几种不同选择及其权衡,那段论述逻辑严密,条理清晰,让我对以往一些模糊的理解瞬间清晰起来。对于一个渴望从“码农”转型为“架构师”的开发者来说,这种思维层面的引导比单纯的代码示例要珍贵得多。

评分

这本书的行文风格非常独特,它不像传统技术书籍那样板着脸孔,而是带着一种引导和互动的语气。读起来完全没有那种枯燥乏味的感觉,更像是一位经验丰富的工程师在旁边手把手地教导你,偶尔还会冒出一些略带幽默的点评,让紧张的技术学习过程变得轻松愉快。比如,在介绍某个配置参数的复杂性时,作者用了一个非常形象的比喻,瞬间就让我记住了那个关键点。再者,这本书在组织内容时,很注意学习曲线的平滑过渡。它不是一股脑地把所有高级特性都堆在你面前,而是循序渐进,从基础的资源模型开始,逐步引入更复杂的异步处理机制和外部服务集成。这种精心设计的节奏感,让即便是对这个平台一无所知的新手,也能较好地跟上节奏,而资深开发者也能从中找到深化理解的切入点,显示出其兼顾不同水平读者的用心良苦。

评分

评分

评分

评分

评分

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2026 book.quotespace.org All Rights Reserved. 小美书屋 版权所有