Introduction to Google App Engine

Lab Details:

  1. This lab walks you through Google App Engine Application creation.

  2. You will be deploying an application printing Welcome to Whizlabs.

  3. Region: us-central1

  4. Duration: 45 minutes

What is Google App Engine?

App Engine is a PAAS Service (Platform as a Service). It implies that you just deploy your code, and this service does everything else for you. For instance, if your application turns out to be successful, App Engine will spin up more instances to deal with the increased volume.

  • Google App Engine is a fully scalable service means it will automatically spin more instances if the traffic goes higher and decrease the instances once the traffic decreases.

  • You will be charged only for the resources you really use, It means that you will be billed for the Instance-HoursTransferred DataStorage, etc your app really used.

  • But the only problem is, you can create your application in only given runtimes Python, PHP, Java, NodeJS, .NET, Ruby, and **Go, Whereas Google Compute Engine provides you infrastructure in the form of a Virtual Machine. You have total control over those VMs and you can use any runtime in VMs.

Types of App Engine:-

  • Google App Engine - Standard is like a read-only folder in which you upload your code. Read-only means there are a fixed set of libraries installed for you and you cannot deploy third-party libraries at all). DNS / Sub-domains etc are so much easier to map.

  • Google App Engine - Flexible is like a real file-system where you have more control as compared to the Standard App engine, you have write permissions, but less as compared to GCP Compute Engine. In Flexible App Engine, you can use whatever library your app depends on.

Compute Engine Vs App Engine ->

  • Compute Engine is similar to a virtual PC, where you would deploy any website and database. You will manage everything, you have control of installed disk drives. If you deploy a website, You are in charge of setting up DNS, etc. 

  • GAE Standard is quite difficult because you can use only a certain set of libraries, you cannot use any third-party libraries.

  • In Google App Engine, you don't manage the operating system of any of the underlying software. You only upload code (Java, PHP, Python, or Go), and it just runs. 

  • Simply, GCE is the way to use Google Data Centers virtually.

  • In GCE you have to manually configure your infrastructure to handle scalability and load balancing by using AutoScaling and Load Balancer.

  • App engine saves a lot of headache, but it has few drawbacks also:

    • It is more expensive but it also has a free quota that GCE doesn't have.

    • You have lesser control over infrastructure, that's why certain things are not possible.

Lab Tasks:

  1. Login into GCP Console.

  2. Starting Cloud Shell.

  3. Creating an Application directory.

  4. Creating the Main function.

  5. Defining requirements/libraries.

  6. Defining Runtime.

  7. Deploying the application



Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses