Join Joseph Lowery for an in-depth discussion in this video Setting up App Engine services, part of Google App Engine Essential Training.
- When you come right down to it, most apps include functionality to perform the same kind of operations, like sending email messages or working with ephemeral data. To make its developer's life simpler, Google App Engine includes a number of services for each of the supported languages. In this lesson, we'll take a look at how to access them in general, and then hone in a common, but extremely powerful, service. The number of services or APIs available for the supported runtime environments is pretty different from one language to the next.
Currently, Java and Python are tied with 18, followed by 15 for Go. PHP is the new kid on the block, with only nine to call its own. You can find out all about these by going to the App Engine docs for the language you're interested in. Under each language on the left, you'll see a section known as Services. Let's take a look at the Java Services to start. As mentioned earlier, there are a good number of Java Services available.
As of this recording, 18 in all. Why don't we hone in one the Images Service. The Images Java API is great for a wide range of graphics manipulation, including cropping, resizing, rotating and flipping. There's also a filter for adjusting the image appearance and much more. The Overview section that you see here gives us some more details about the image capabilities, as well as specific code for implementation. If we scroll down, you'll start to see some graphic examples of common operations, such as transforming images, resizing, rotating, flipping, horizontally and vertically, and so on.
You can even roll the dice with the I'm Feeling Lucky filter for image enhancement. When you're ready to get down to serious coding, go back to the navigation and click on the Javadoc Reference. There, you'll find a succinct breakdown of the various code elements. Let's return to our docs page and scroll up just a tad. I'll collapse Java. Let's go back another page there. If you expand any of the other languages and then drill down to Services, you'll also find an Images Service in all of them, except for PHP, which typically uses their own library for image modification, such as GD or Imagic.
Obviously, the service is tailored to the specific runtime environment. Let's take a quick tour of the Python Images Service. I'll open up Python, open up Services, and then go down to Images and click Overview. Then here under Transforming Images in Python, you can see that the code is distinctly different from Java, of course. One section that you're going to want to look at for every service is Quotas and limits.
That's found on the Overview page for each section, listed as the last link in the first grouping. Here you can see how using the service affects your charges, if at all, as well as any limits. What you see on the page now is the Quotas and limits section for the Python Images Service. App Engine Services are intended to reduce your app development time, so be sure to look them over when you're in the planning stage to see which ones you can take advantage of.
- Understanding the Google App Engine
- Using the Google Cloud Console
- Setting App Engine services
- Coding your app
- Working with images, style sheets, and other static files
- Incorporating HTML templates
- Uploading and deploying your app
- Implementing Google Cloud Storage
- Setting up a custom domain