SlideShare a Scribd company logo
1 of 30
Infinite Scale 
Introduction to Google App Engine
There are only 10 types of people 
in the world: those who understand 
binary, and those who don’t
There are only 10 types of people 
in the world: those who understand 
binary, and those who don’t 
If you smiled, chances are you’ll understand this 
presentation, if not, at least you’ll know this stuff exists
Google Cloud Platform
Google App Engine 
• Platform as a Service 
• Run applications on Google’s infrastructure 
• Used by millions 
• Best Buy / Coca Cola / Ubisoft / Sony
Google App Engine 
• Build and deploy 
• No worrying about servers or load balancers 
• Auto scale to 7 billion requests per day 
• Java / Python / PHP / Go
GAE Python Runtime Environment 
• App Engine executes Python app code using 
an interpreter in a "sandboxed" environment 
• The interpreter can run any pure Python code 
• The "sandbox" environment isolates your app 
for service and security; an application 
cannot: 
– Write to the filesystem 
– Respond slowly 
– Make other kinds of system calls
GAE Python Runtime Environment 
• GAE Request Headers 
– Sanitized for security 
– Additional headers: country, region, city, latlong 
• GAE Responses 
– All output data is sent, does not support sending data 
to the browser before the handler returns 
– Additional headers when accessing the site as 
administrator: 
• Estimate of what 1,000 similar requests would cost 
• Resources used by the request, including server-side time 
• GAE automatically uses the SPDY protocol
Google App Engine Python Tutorial 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
Google App Engine Python Tutorial 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Hello, Universe! 
• Configuration file: app.yaml 
– YAML: recursive acronym for 
“YAML Ain’t Markup Language” 
– YAML is a human friendly data serialization 
standard for all programming languages 
• Python script: hellouniverse.py 
<CODE/>
Google App Engine Python Tutorial 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Frameworks 
• GAE supports any framework written in pure 
Python that speaks WSGI 
– Django, CherryPy, Pylons, web.py, web2py, etc. 
• WSGI – Web Server Gateway Interface 
– Interface between web servers and web 
applications or frameworks for Python 
• Webapp2 
– App Engine includes a simple web application 
framework, called webapp2
GAE Tutorial Frameworks 
• A webapp2 application has two parts 
– one or more RequestHandler classes that process 
requests and build responses 
– a WSGIApplication instance that routes incoming 
requests to handlers based on the URL
Google App Engine Python Tutorial 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Users 
• GAE provides several useful services based on 
Google infrastructure 
• Users service lets your application integrate 
with Google user accounts 
• With the Users service, your users can use the 
Google accounts they already have to sign in 
to your application 
<CODE/>
Google App Engine Forms 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Forms 
• The webapp2 framework makes processing 
form data easy 
– Define handlers to send form data 
– Define classes or methods to process data 
<CODE/>
Google App Engine Datastore 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Datastore 
• App Engine's data repository, the High 
Replication Datastore (HRD), replicates data 
across multiple datacenters 
• Data is written in Entities 
• The entities form a hierarchically-structured 
space similar to a directory structure 
<CODE/>
Google App Engine Templates 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Templates 
• With a templating system the HTML is kept in 
a separate file with special syntax 
• There are many templating systems for 
Python: EZT, Cheetah, ClearSilver, Quixote, 
Django, Jinja2, etc. 
• App Engine includes the Django and Jinja2 
templating engines 
<CODE/>
Google App Engine Assets 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Assets 
• GAE does not serve files directly out of your 
application's source directory 
• There are many cases where you want to 
serve static files directly to the web browser: 
Images, CSS stylesheets, JavaScript code, 
movies, Flash animations, etc. 
• App Engine can serve specific files without you 
having to code your own handler 
<CODE/>
Google App Engine Tests 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Tests 
• Instead of writing tests after you finish 
developing your application, consider writing 
the tests as you go 
• App Engine provides testing utilities that use 
local implementations of datastore and other 
App Engine services, by using service stubs 
(local service simulators) 
<CODE/>
Google App Engine Deployment 
1. Hello, Universe! 
2. Frameworks 
3. Users 
4. Forms 
5. Datastore 
6. Templates 
7. Assets 
8. Tests 
9. Deployment
GAE Tutorial Deployment 
• Use appcfg.py script or GAE Launcher 
• Each project can have one Release Pipeline: 
– Building the application 
– Running unit tests (optional) 
– Deploying the application to App Engine 
– Sending notifications upon completion (optional) 
• Trigger the Release Pipeline by pushing the 
source to the master branch 
of your Cloud Repository <EXAMPLE/>
Resources: 
• Google Cloud Platform 
https://cloud.google.com/ 
• Google App Engine Docs 
https://cloud.google.com/appengine/docs 
• GAE Developers Console 
https://console.developers.google.com 
• This tutorial is based on the official Python Getting Started guide 
from Google App Engine, created by the App Engine team and 
licensed under the Creative Commons Attribution 3.0 License 
Thank You!

More Related Content

What's hot

Build client-side web parts for Microsoft SharePoint
Build client-side web parts for Microsoft SharePointBuild client-side web parts for Microsoft SharePoint
Build client-side web parts for Microsoft SharePointChakkaradeep Chandran
 
COB - Azure Functions for Office 365 developers
COB - Azure Functions for Office 365 developersCOB - Azure Functions for Office 365 developers
COB - Azure Functions for Office 365 developersChris O'Brien
 
Using and extending Alfresco Content Application
Using and extending Alfresco Content ApplicationUsing and extending Alfresco Content Application
Using and extending Alfresco Content ApplicationDenys Vuika
 
Continuous Testing in the Cloud
Continuous Testing in the CloudContinuous Testing in the Cloud
Continuous Testing in the CloudSauce Labs
 
Learn from my Mistakes - Building Better Solutions in SPFx
Learn from my  Mistakes - Building Better Solutions in SPFxLearn from my  Mistakes - Building Better Solutions in SPFx
Learn from my Mistakes - Building Better Solutions in SPFxThomas Daly
 
Helm v3 for Beginners
Helm v3 for BeginnersHelm v3 for Beginners
Helm v3 for BeginnersHrittik Roy
 
Continuous Delivery for Front-End Engineers
Continuous Delivery for Front-End EngineersContinuous Delivery for Front-End Engineers
Continuous Delivery for Front-End EngineersSergey Bolshchikov
 
Build Database Applications for SharePoint
Build Database Applications for SharePointBuild Database Applications for SharePoint
Build Database Applications for SharePointIron Speed
 
PGI - QA Automation Initiatives v2
PGI - QA Automation Initiatives v2PGI - QA Automation Initiatives v2
PGI - QA Automation Initiatives v2Mahmudul Hasan
 
Managing the SharePoint 2010 Application Lifecycle - Part 2
Managing the SharePoint 2010 Application Lifecycle - Part 2Managing the SharePoint 2010 Application Lifecycle - Part 2
Managing the SharePoint 2010 Application Lifecycle - Part 2Chris O'Brien
 
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)Chris O'Brien
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React NativeSambhu Lakshmanan
 
Deployment automation framework with selenium
Deployment automation framework with seleniumDeployment automation framework with selenium
Deployment automation framework with seleniumWenhua Wang
 
Continuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCDContinuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCDAroj George
 
ASP.NET Core 1.0 Overview: Pre-RC2
ASP.NET Core 1.0 Overview: Pre-RC2ASP.NET Core 1.0 Overview: Pre-RC2
ASP.NET Core 1.0 Overview: Pre-RC2Shahed Chowdhuri
 
Modern App Development with the SharePoint Framework
Modern App Development with the SharePoint FrameworkModern App Development with the SharePoint Framework
Modern App Development with the SharePoint FrameworkPete Filicetti
 
DevOps ci/cd with Microsoft vsts and azure
DevOps ci/cd with Microsoft vsts and azureDevOps ci/cd with Microsoft vsts and azure
DevOps ci/cd with Microsoft vsts and azureMurughan Palaniachari
 

What's hot (20)

Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Selenium
SeleniumSelenium
Selenium
 
Build client-side web parts for Microsoft SharePoint
Build client-side web parts for Microsoft SharePointBuild client-side web parts for Microsoft SharePoint
Build client-side web parts for Microsoft SharePoint
 
COB - Azure Functions for Office 365 developers
COB - Azure Functions for Office 365 developersCOB - Azure Functions for Office 365 developers
COB - Azure Functions for Office 365 developers
 
Using and extending Alfresco Content Application
Using and extending Alfresco Content ApplicationUsing and extending Alfresco Content Application
Using and extending Alfresco Content Application
 
Continuous Testing in the Cloud
Continuous Testing in the CloudContinuous Testing in the Cloud
Continuous Testing in the Cloud
 
Learn from my Mistakes - Building Better Solutions in SPFx
Learn from my  Mistakes - Building Better Solutions in SPFxLearn from my  Mistakes - Building Better Solutions in SPFx
Learn from my Mistakes - Building Better Solutions in SPFx
 
Helm v3 for Beginners
Helm v3 for BeginnersHelm v3 for Beginners
Helm v3 for Beginners
 
Continuous Delivery for Front-End Engineers
Continuous Delivery for Front-End EngineersContinuous Delivery for Front-End Engineers
Continuous Delivery for Front-End Engineers
 
Build Database Applications for SharePoint
Build Database Applications for SharePointBuild Database Applications for SharePoint
Build Database Applications for SharePoint
 
PGI - QA Automation Initiatives v2
PGI - QA Automation Initiatives v2PGI - QA Automation Initiatives v2
PGI - QA Automation Initiatives v2
 
ASP.NET Core Unit Testing
ASP.NET Core Unit TestingASP.NET Core Unit Testing
ASP.NET Core Unit Testing
 
Managing the SharePoint 2010 Application Lifecycle - Part 2
Managing the SharePoint 2010 Application Lifecycle - Part 2Managing the SharePoint 2010 Application Lifecycle - Part 2
Managing the SharePoint 2010 Application Lifecycle - Part 2
 
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Deployment automation framework with selenium
Deployment automation framework with seleniumDeployment automation framework with selenium
Deployment automation framework with selenium
 
Continuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCDContinuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCD
 
ASP.NET Core 1.0 Overview: Pre-RC2
ASP.NET Core 1.0 Overview: Pre-RC2ASP.NET Core 1.0 Overview: Pre-RC2
ASP.NET Core 1.0 Overview: Pre-RC2
 
Modern App Development with the SharePoint Framework
Modern App Development with the SharePoint FrameworkModern App Development with the SharePoint Framework
Modern App Development with the SharePoint Framework
 
DevOps ci/cd with Microsoft vsts and azure
DevOps ci/cd with Microsoft vsts and azureDevOps ci/cd with Microsoft vsts and azure
DevOps ci/cd with Microsoft vsts and azure
 

Similar to Infinite Scale - Introduction to Google App Engine

App_Engine_PPT..........................
App_Engine_PPT..........................App_Engine_PPT..........................
App_Engine_PPT..........................HassamShahid2
 
Google App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicGoogle App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicWei-Tsung Su
 
Google appenginejava.ppt
Google appenginejava.pptGoogle appenginejava.ppt
Google appenginejava.pptYoung Alista
 
appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)Ryo Yamasaki
 
Rapid Application Development on Google App Engine for Java
Rapid Application Development on Google App Engine for JavaRapid Application Development on Google App Engine for Java
Rapid Application Development on Google App Engine for JavaKunal Dabir
 
Google app engine
Google app engineGoogle app engine
Google app engineSuraj Mehta
 
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...Naga Rohit
 
Google App Engine for Java
Google App Engine for JavaGoogle App Engine for Java
Google App Engine for JavaLars Vogel
 
Google App Engine - Overview #1
Google App Engine - Overview #1Google App Engine - Overview #1
Google App Engine - Overview #1Kay Kim
 
OSGi Community Event 2010 - App Store for the Connected Home Services
OSGi Community Event 2010 - App Store for the Connected Home ServicesOSGi Community Event 2010 - App Store for the Connected Home Services
OSGi Community Event 2010 - App Store for the Connected Home Servicesmfrancis
 
Exploring Google APIs with Python
Exploring Google APIs with PythonExploring Google APIs with Python
Exploring Google APIs with Pythonwesley chun
 
Google App Engine for PHP
Google App Engine for PHP Google App Engine for PHP
Google App Engine for PHP Eric Johnson
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Gil Irizarry
 

Similar to Infinite Scale - Introduction to Google App Engine (20)

App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
App_Engine_PPT..........................
App_Engine_PPT..........................App_Engine_PPT..........................
App_Engine_PPT..........................
 
Google App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicGoogle App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: Basic
 
Google appenginejava.ppt
Google appenginejava.pptGoogle appenginejava.ppt
Google appenginejava.ppt
 
appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)
 
Rapid Application Development on Google App Engine for Java
Rapid Application Development on Google App Engine for JavaRapid Application Development on Google App Engine for Java
Rapid Application Development on Google App Engine for Java
 
Google app engine
Google app engineGoogle app engine
Google app engine
 
Google app engine
Google app engineGoogle app engine
Google app engine
 
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
 
Google App Engine for Java
Google App Engine for JavaGoogle App Engine for Java
Google App Engine for Java
 
Google App Engine - Overview #1
Google App Engine - Overview #1Google App Engine - Overview #1
Google App Engine - Overview #1
 
Google Cloud Platform
Google Cloud Platform Google Cloud Platform
Google Cloud Platform
 
SamSegalResume
SamSegalResumeSamSegalResume
SamSegalResume
 
OSGi Community Event 2010 - App Store for the Connected Home Services
OSGi Community Event 2010 - App Store for the Connected Home ServicesOSGi Community Event 2010 - App Store for the Connected Home Services
OSGi Community Event 2010 - App Store for the Connected Home Services
 
Syncitall
SyncitallSyncitall
Syncitall
 
Exploring Google APIs with Python
Exploring Google APIs with PythonExploring Google APIs with Python
Exploring Google APIs with Python
 
Google App Engine for PHP
Google App Engine for PHP Google App Engine for PHP
Google App Engine for PHP
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
 

Recently uploaded

Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationMarko4394
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 

Recently uploaded (17)

Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentation
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 

Infinite Scale - Introduction to Google App Engine

  • 1. Infinite Scale Introduction to Google App Engine
  • 2.
  • 3. There are only 10 types of people in the world: those who understand binary, and those who don’t
  • 4. There are only 10 types of people in the world: those who understand binary, and those who don’t If you smiled, chances are you’ll understand this presentation, if not, at least you’ll know this stuff exists
  • 6. Google App Engine • Platform as a Service • Run applications on Google’s infrastructure • Used by millions • Best Buy / Coca Cola / Ubisoft / Sony
  • 7. Google App Engine • Build and deploy • No worrying about servers or load balancers • Auto scale to 7 billion requests per day • Java / Python / PHP / Go
  • 8. GAE Python Runtime Environment • App Engine executes Python app code using an interpreter in a "sandboxed" environment • The interpreter can run any pure Python code • The "sandbox" environment isolates your app for service and security; an application cannot: – Write to the filesystem – Respond slowly – Make other kinds of system calls
  • 9. GAE Python Runtime Environment • GAE Request Headers – Sanitized for security – Additional headers: country, region, city, latlong • GAE Responses – All output data is sent, does not support sending data to the browser before the handler returns – Additional headers when accessing the site as administrator: • Estimate of what 1,000 similar requests would cost • Resources used by the request, including server-side time • GAE automatically uses the SPDY protocol
  • 10. Google App Engine Python Tutorial 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 11. Google App Engine Python Tutorial 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 12. GAE Tutorial Hello, Universe! • Configuration file: app.yaml – YAML: recursive acronym for “YAML Ain’t Markup Language” – YAML is a human friendly data serialization standard for all programming languages • Python script: hellouniverse.py <CODE/>
  • 13. Google App Engine Python Tutorial 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 14. GAE Tutorial Frameworks • GAE supports any framework written in pure Python that speaks WSGI – Django, CherryPy, Pylons, web.py, web2py, etc. • WSGI – Web Server Gateway Interface – Interface between web servers and web applications or frameworks for Python • Webapp2 – App Engine includes a simple web application framework, called webapp2
  • 15. GAE Tutorial Frameworks • A webapp2 application has two parts – one or more RequestHandler classes that process requests and build responses – a WSGIApplication instance that routes incoming requests to handlers based on the URL
  • 16. Google App Engine Python Tutorial 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 17. GAE Tutorial Users • GAE provides several useful services based on Google infrastructure • Users service lets your application integrate with Google user accounts • With the Users service, your users can use the Google accounts they already have to sign in to your application <CODE/>
  • 18. Google App Engine Forms 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 19. GAE Tutorial Forms • The webapp2 framework makes processing form data easy – Define handlers to send form data – Define classes or methods to process data <CODE/>
  • 20. Google App Engine Datastore 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 21. GAE Tutorial Datastore • App Engine's data repository, the High Replication Datastore (HRD), replicates data across multiple datacenters • Data is written in Entities • The entities form a hierarchically-structured space similar to a directory structure <CODE/>
  • 22. Google App Engine Templates 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 23. GAE Tutorial Templates • With a templating system the HTML is kept in a separate file with special syntax • There are many templating systems for Python: EZT, Cheetah, ClearSilver, Quixote, Django, Jinja2, etc. • App Engine includes the Django and Jinja2 templating engines <CODE/>
  • 24. Google App Engine Assets 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 25. GAE Tutorial Assets • GAE does not serve files directly out of your application's source directory • There are many cases where you want to serve static files directly to the web browser: Images, CSS stylesheets, JavaScript code, movies, Flash animations, etc. • App Engine can serve specific files without you having to code your own handler <CODE/>
  • 26. Google App Engine Tests 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 27. GAE Tutorial Tests • Instead of writing tests after you finish developing your application, consider writing the tests as you go • App Engine provides testing utilities that use local implementations of datastore and other App Engine services, by using service stubs (local service simulators) <CODE/>
  • 28. Google App Engine Deployment 1. Hello, Universe! 2. Frameworks 3. Users 4. Forms 5. Datastore 6. Templates 7. Assets 8. Tests 9. Deployment
  • 29. GAE Tutorial Deployment • Use appcfg.py script or GAE Launcher • Each project can have one Release Pipeline: – Building the application – Running unit tests (optional) – Deploying the application to App Engine – Sending notifications upon completion (optional) • Trigger the Release Pipeline by pushing the source to the master branch of your Cloud Repository <EXAMPLE/>
  • 30. Resources: • Google Cloud Platform https://cloud.google.com/ • Google App Engine Docs https://cloud.google.com/appengine/docs • GAE Developers Console https://console.developers.google.com • This tutorial is based on the official Python Getting Started guide from Google App Engine, created by the App Engine team and licensed under the Creative Commons Attribution 3.0 License Thank You!