Code in the Cloud, Programming Google App Engine by Mark C. Chu-Carroll

By Mark C. Chu-Carroll

Some of the most fascinating fresh alterations within the computing international is cloud computing. Cloud computing is a dramatic shift in how functions are built and used---and even in what functions are. With cloud computing, builders aren't any longer construction functions that run on a user's computer computing device. as an alternative, they're development prone at the community that may be utilized by hundreds of thousands of clients whilst. Cloud prone are a thrilling chance for builders: the cloud is a platform for growing companies, a brand new form of program which can succeed in extra clients, and supply these clients with extra services than a laptop software ever may perhaps. development functions as cloud companies additionally makes them scalable: cloud functions can simply and easily adapt from working on a unmarried computing device for a unmarried person to operating on hundreds of thousands of desktops for thousands of users.Code within the Cloud will educate you what a cloud carrier is, and the way it differs from conventional purposes. it is going to enable you to construct a cloud carrier, benefiting from the prone that AppEngine makes on hand to you, utilizing iterative improvement of an easy program to steer you thru different features of AppEngine improvement, utilizing both Python or Java. during the technique of engaged on an easy software, you are going to find out about how you can construct an program as a carrier; tips to deal with chronic information utilizing AppEngine; the way to construct dynamic, interactive consumer interfaces that run in a user's web-browser; easy methods to deal with safeguard in an internet software; and the way to have interaction with different companies operating within the AppEngine cloud.

Show description

Read or Download Code in the Cloud, Programming Google App Engine PDF

Best software development books

Design Patterns: Elements of Reusable Object-Oriented Software

4 top-notch authors current the 1st publication containing a catalog of object-oriented layout styles. Readers will the right way to use layout styles within the object-oriented improvement procedure, find out how to remedy particular layout difficulties utilizing styles, and achieve a typical vocabulary for object-oriented layout.

Unlocking Android: a developer's guide

Android is a loose, open resource, Java-based cellular platform built through Google. Unlocking Android prepares the reader to include the Android cellular platform in easy-to-understand language and builds in this beginning with reusable Java code examples. it is perfect for company builders and hobbyists who've an curiosity, or a mandate, to convey cellular software program.

Inside OrCAD Capture for Windows (EDN Series for Design Engineers)

Within OrCAD catch for home windows is a reference handbook and educational for engineers and technicians who use OrCAD as an engineering layout tips (EDA) instrument. This creation to OrCAD is designed to offer easy accessibility to sensible info. vital topics, akin to export of schematic information to be used in circuit research or PCB layout, are accelerated well past the data on hand in OrCAD's documentation.

Advances in Computers, Volume 99

Advances in pcs contains on a convention of excellence, featuring particular insurance of ideas in laptop undefined, software program, concept, layout, and purposes. The publication offers individuals with a medium within which they could discover their topics in larger intensity and breadth than magazine articles generally permit.

Additional info for Code in the Cloud, Programming Google App Engine

Example text

Retrieving Persistent Objects The last thing we need to know is how to retrieve what we’ve stored. Below is the part of our GET handler that retrieves all of the messages from the datastore; the rest of the method—everything outside of the part that retrieves the messages and prints them—is completely unchanged. write("


" % msg) You can retrieve things using a query language called GQL. As you can see from the code, GQL looks a lot like SQL. The big difference is that GQL isn’t querying over tables, it’s querying over model types.

After all, every instance of ChatMessage is exactly the same: they’ve got a set of typed fields, which look a lot like the columns in a relational database. At a first glance, it looks pretty much like a relational database that uses stylized Python classes to create its tables instead of SQL CREATE TABLE statements. That is, in fact, very much not the case. The datastore has a much richer range of data types and data structures than a relational database. In the datastore, we can have properties of a model that have list types, where the elements of the list can be any storable value and where you can use the elements of the list as a part of a GQL query.

The webapp framework provides infrastructure that takes care of the basic HTTP request/response cycle, parsing the incoming requests, generating the necessary headers, and managing the communication with the web server to send the response. In addition, webapp provides access to a set of template processors that allow you to create skeletons of your responses so that you don’t need to output the entire HTML structure yourself. For now, our HTML is straightforward enough that we don’t need to use the template capabilities, but we’ll look at them in detail in Chapter 6, Organizing Code: Separating UI and Logic, on page 70.

Download PDF sample

Rated 4.78 of 5 – based on 10 votes