SlideShare uma empresa Scribd logo
1 de 36
Indika Munaweera
Topics We Cover In This Session
Designing for Scale and Reliability
•What problems App Engine resolve?
•App Engine Stack
•App Engine design
motivations
How Front End works
•Edge Caching
•Load Balancing
How App Server works
•Frontend and Backend instances
•Pending Latency and Idle Instance
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
A Case Study : Real time Earthquake Monitor
•By NIED Japan in collaboration with Google
•The blinking dots represents real time Peak
Ground Acceleration
•20,000 concurrent users, 10000 req/sec at peak
Designing for Scale and Reliability
Designing for Scale and Reliability
The important requirements for Earthquake monitor site
•Scalability
- As it gets spike of traffic at the event of earthquake
•Reliability
- It’s useless if it does not work at the time of disaster
•Cost efficiency
- It’s too expensive to prepare for enough hardware resources that can handle the peak
traffic. They would be idle for the rest of the time.
Designing for Scale and Reliability
How do I design a web service that is scalable and
reliable like this?
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
Any
Standard
Cloud
Offering
Designing for Scale and Reliability
Any
Standard
Cloud
Offering
IaaS
Designing for Scale and Reliability
VM
MANAGEMENT
SOFTWARE
MANAGEMENT
WEB
SERVER DISTRIBUTED
DATABASE
DISTRIBUTED
FILE SYSTEM
APPLICATION
MONITORING
SECURITY
LOAD
BALANCING
???????
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
Designing for Scale and Reliability
Google App Engine is a platform for building scalable web applications and mobile
backends. App Engine provides you with built-in services and APIs such as NoSQL
datastores, memcache, and a user authentication API, common to most applications.
App Engine will scale your application automatically in response to the amount of
traffic it receives so you only pay for the resources you use. Just upload your code
and Google will manage your app's availability. There are no servers for you to
provision or maintain
Designing for Scale and Reliability
Key Features of Google App Engine
•Start Quickly, Build Faster
built-in services such as load balancing, health checks, and application logging
•Automatic Scaling
App Engine offers built-in auto-scaling so that your apps can instantly scale
automatically based on need, from zero to millions of users.
•Automated Security Scanning
Security Scanner automatically scans and detects common web application
vulnerabilities.
•Use the Tools You Love
App Engine works with popular development tools such as Eclipse, IntelliJ, Maven, Git,
Jenkins, and PyCharm
Designing for Scale and Reliability
The App Engine Encapsulate Them All
What if you have:
•Hardware failures
•Traffic Spike
•Growing Big Data
•No initial fund
•No one to build/operate
Designing for Scale and Reliability
App Engine design motivations
Encourage Google’s best practice for scalability and reliability
Non-relational data model by Datastore/Bigtable
 Sharding, Denormalization…
Portable and fine-grained app design
 Fast request handling to optimize server resource utilization
 Independent to each physical server
It’s not just a hosting service: App Engine empowers you to design your app in
Google way!
How Front End works
hat Benefits will Front End provide?
Huge difference between the traffic volume on the orange line (the number of requests)
and blue line (the number of requests handled by application)
How Front End works
hat Benefits will Front End provide?
Huge difference between the traffic volume on the orange line (the number of requests)
and blue line (the number of requests handled by application)
How Front End works
Life of a Request in Front End
How Front End works
GFE closest to the
user provides edge
caching capability
AE FE provides load
balancing on App Servers
and Static Servers
How App Engine works
How App Engine works
How App Server works
How App Engine works
What is an Application Instance?
Similar to a virtual machine, provides a runtime environment for your app
•has dedicated memory for your app
•but fully managed
No burden of managing OS; the overhead, device drivers, security..
How App Engine works
ntend and Backend Instances
Frontend instances (not App Engine Front End)
•Dynamically created and deleted = low cost
•Enforce fast response and stateless design
•Suitable for processing short-lived requests
Backend instances
•Statically created and deleted = higher cost
•No limit for response time, support stateful design
•Suitable for batch processing
How App Engine works
How Frontend instances Scale
•App Engine watches pending request queue of each instances
•Let’s see what would happen if your app gets a traffic spike
•Instances dynamically added/removed based on queue size
Pending
request
queue
How App Engine works
How Frontend instances Scale
•App Engine watches pending request queue of each instances
•Let’s see what would happen if your app gets a traffic spike
•Instances dynamically added/removed based on queue size
Pending
request
queue
Idle Instances
Pending
Latency
How App Engine works
Pending Latency
•Time to hold request in pending queue before creating new instances
•Less latency responds faster but costs more
How App Engine works
What are idle instances?
•Number of instances always available
•Higher number responds faster but costs more
How App Engine works
Key Takeaways
App Engine encapsulate all the cost and effort
•To build and operate a web app with Google scale and reliability
•Encourage Google’s best practices for scalability and reliability
•Significantly lower Total Cost of Ownership
Front End provides scalability and reliability by:
•Edge Caching by Google Front End
•Load Balancing by App Engine Front End
App server controls scalability by:
•Dynamic control of Frontend and Backend instances
•Managing Pending Latency and Idle Instances
Thank you !

Mais conteúdo relacionado

Mais procurados

Google App Engine
Google App EngineGoogle App Engine
Google App EngineCsaba Toth
 
Google app engine - Overview
Google app engine - OverviewGoogle app engine - Overview
Google app engine - OverviewNathan Quach
 
Platform as a service google app engine
Platform as a service   google app enginePlatform as a service   google app engine
Platform as a service google app engineDeepu S Nath
 
Google App Engine (Introduction)
Google App Engine (Introduction)Google App Engine (Introduction)
Google App Engine (Introduction)Praveen Hanchinal
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App EngineAndrea Spadaccini
 
Google app engine introduction
Google app engine introductionGoogle app engine introduction
Google app engine introductionrajsandhu1989
 
Google app engine
Google app engineGoogle app engine
Google app engineRenjith318
 
Google App Engine for Java
Google App Engine for JavaGoogle App Engine for Java
Google App Engine for JavaLars Vogel
 
Google Application Engine
Google Application EngineGoogle Application Engine
Google Application Engineguestd77e8ae
 
Google App Engine: An Introduction
Google App Engine: An IntroductionGoogle App Engine: An Introduction
Google App Engine: An IntroductionAbu Ashraf Masnun
 
Google App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and GaelykGoogle App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and GaelykGuillaume Laforge
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Enginerajdeep
 
Google App Engine - Overview #3
Google App Engine - Overview #3Google App Engine - Overview #3
Google App Engine - Overview #3Kay Kim
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...e-Legion
 

Mais procurados (20)

Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Google app engine - Overview
Google app engine - OverviewGoogle app engine - Overview
Google app engine - Overview
 
Google app engine
Google app engineGoogle app engine
Google app engine
 
Platform as a service google app engine
Platform as a service   google app enginePlatform as a service   google app engine
Platform as a service google app engine
 
App Engine
App EngineApp Engine
App Engine
 
Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Google App Engine (Introduction)
Google App Engine (Introduction)Google App Engine (Introduction)
Google App Engine (Introduction)
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Google app engine introduction
Google app engine introductionGoogle app engine introduction
Google app engine introduction
 
Google app engine
Google app engineGoogle app engine
Google app engine
 
Google App Engine for Java
Google App Engine for JavaGoogle App Engine for Java
Google App Engine for Java
 
Google Application Engine
Google Application EngineGoogle Application Engine
Google Application Engine
 
Google App Engine tutorial
Google App Engine tutorialGoogle App Engine tutorial
Google App Engine tutorial
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Google App Engine: An Introduction
Google App Engine: An IntroductionGoogle App Engine: An Introduction
Google App Engine: An Introduction
 
Google App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and GaelykGoogle App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and Gaelyk
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Google App Engine - Overview #3
Google App Engine - Overview #3Google App Engine - Overview #3
Google App Engine - Overview #3
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
 

Semelhante a Google App engine

Event Driven Architectures - Net Conf UY 2018
Event Driven Architectures - Net Conf UY 2018Event Driven Architectures - Net Conf UY 2018
Event Driven Architectures - Net Conf UY 2018Bradley Irby
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...NITHIN S.S
 
Event Driven Architecture – Enabling Microservices
Event Driven Architecture – Enabling MicroservicesEvent Driven Architecture – Enabling Microservices
Event Driven Architecture – Enabling MicroservicesBradley Irby
 
Top 5 Java Performance Metrics, Tips & Tricks
Top 5 Java Performance Metrics, Tips & TricksTop 5 Java Performance Metrics, Tips & Tricks
Top 5 Java Performance Metrics, Tips & TricksAppDynamics
 
Tech Talk on Cloud Computing
Tech Talk on Cloud ComputingTech Talk on Cloud Computing
Tech Talk on Cloud ComputingITviec
 
Understanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformUnderstanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformDr. Ketan Parmar
 
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...Agile Testing Alliance
 
Application Architecture Summit - Monitoring the Dynamic Cloud
Application Architecture Summit - Monitoring the Dynamic Cloud Application Architecture Summit - Monitoring the Dynamic Cloud
Application Architecture Summit - Monitoring the Dynamic Cloud New Relic
 
Disruptive Trends in Application Development
Disruptive Trends in Application DevelopmentDisruptive Trends in Application Development
Disruptive Trends in Application DevelopmentWaveMaker, Inc.
 
Gcp intro-20160721
Gcp intro-20160721Gcp intro-20160721
Gcp intro-20160721Haeseung Lee
 
How to Monitor Your Java & .NET Applications with eG Enterprise
How to Monitor Your Java & .NET Applications with eG EnterpriseHow to Monitor Your Java & .NET Applications with eG Enterprise
How to Monitor Your Java & .NET Applications with eG EnterpriseeG Innovations
 
Basic fundamentals of web application development
Basic fundamentals of web application developmentBasic fundamentals of web application development
Basic fundamentals of web application developmentsofyjohnson18
 
Moving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloudMoving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloudElastic Path
 
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...Sencha
 
Application Insights - Real time telemetry for your cross platform applications
Application Insights - Real time telemetry for your cross platform applicationsApplication Insights - Real time telemetry for your cross platform applications
Application Insights - Real time telemetry for your cross platform applicationsAbhijit Jana
 
Customer Sharing: HTC - What is in AWS Cloud for me?
Customer Sharing: HTC - What is in AWS Cloud for me?Customer Sharing: HTC - What is in AWS Cloud for me?
Customer Sharing: HTC - What is in AWS Cloud for me?Amazon Web Services
 
What serverless means for enterprise apps
What serverless means for enterprise appsWhat serverless means for enterprise apps
What serverless means for enterprise appsSumit Sarkar
 

Semelhante a Google App engine (20)

Event Driven Architectures - Net Conf UY 2018
Event Driven Architectures - Net Conf UY 2018Event Driven Architectures - Net Conf UY 2018
Event Driven Architectures - Net Conf UY 2018
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
 
Event Driven Architecture – Enabling Microservices
Event Driven Architecture – Enabling MicroservicesEvent Driven Architecture – Enabling Microservices
Event Driven Architecture – Enabling Microservices
 
Top 5 Java Performance Metrics, Tips & Tricks
Top 5 Java Performance Metrics, Tips & TricksTop 5 Java Performance Metrics, Tips & Tricks
Top 5 Java Performance Metrics, Tips & Tricks
 
Tech Talk on Cloud Computing
Tech Talk on Cloud ComputingTech Talk on Cloud Computing
Tech Talk on Cloud Computing
 
Understanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformUnderstanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud Platform
 
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
 
Application Architecture Summit - Monitoring the Dynamic Cloud
Application Architecture Summit - Monitoring the Dynamic Cloud Application Architecture Summit - Monitoring the Dynamic Cloud
Application Architecture Summit - Monitoring the Dynamic Cloud
 
Disruptive Trends in Application Development
Disruptive Trends in Application DevelopmentDisruptive Trends in Application Development
Disruptive Trends in Application Development
 
Gcp intro-20160721
Gcp intro-20160721Gcp intro-20160721
Gcp intro-20160721
 
How to Monitor Your Java & .NET Applications with eG Enterprise
How to Monitor Your Java & .NET Applications with eG EnterpriseHow to Monitor Your Java & .NET Applications with eG Enterprise
How to Monitor Your Java & .NET Applications with eG Enterprise
 
Basic fundamentals of web application development
Basic fundamentals of web application developmentBasic fundamentals of web application development
Basic fundamentals of web application development
 
Moving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloudMoving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloud
 
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
 
Application Insights - Real time telemetry for your cross platform applications
Application Insights - Real time telemetry for your cross platform applicationsApplication Insights - Real time telemetry for your cross platform applications
Application Insights - Real time telemetry for your cross platform applications
 
Customer Sharing: HTC - What is in AWS Cloud for me?
Customer Sharing: HTC - What is in AWS Cloud for me?Customer Sharing: HTC - What is in AWS Cloud for me?
Customer Sharing: HTC - What is in AWS Cloud for me?
 
What serverless means for enterprise apps
What serverless means for enterprise appsWhat serverless means for enterprise apps
What serverless means for enterprise apps
 
Scale net apps in aws
Scale net apps in awsScale net apps in aws
Scale net apps in aws
 
Scale net apps in aws
Scale net apps in awsScale net apps in aws
Scale net apps in aws
 
Neev Load Testing Services
Neev Load Testing ServicesNeev Load Testing Services
Neev Load Testing Services
 

Último

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Último (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Google App engine

  • 2. Topics We Cover In This Session Designing for Scale and Reliability •What problems App Engine resolve? •App Engine Stack •App Engine design motivations How Front End works •Edge Caching •Load Balancing How App Server works •Frontend and Backend instances •Pending Latency and Idle Instance
  • 3. Designing for Scale and Reliability
  • 4. Designing for Scale and Reliability
  • 5. Designing for Scale and Reliability
  • 6. Designing for Scale and Reliability A Case Study : Real time Earthquake Monitor •By NIED Japan in collaboration with Google •The blinking dots represents real time Peak Ground Acceleration •20,000 concurrent users, 10000 req/sec at peak
  • 7. Designing for Scale and Reliability
  • 8. Designing for Scale and Reliability The important requirements for Earthquake monitor site •Scalability - As it gets spike of traffic at the event of earthquake •Reliability - It’s useless if it does not work at the time of disaster •Cost efficiency - It’s too expensive to prepare for enough hardware resources that can handle the peak traffic. They would be idle for the rest of the time.
  • 9. Designing for Scale and Reliability How do I design a web service that is scalable and reliable like this?
  • 10. Designing for Scale and Reliability
  • 11. Designing for Scale and Reliability
  • 12. Designing for Scale and Reliability
  • 13. Designing for Scale and Reliability Any Standard Cloud Offering
  • 14. Designing for Scale and Reliability Any Standard Cloud Offering IaaS
  • 15. Designing for Scale and Reliability VM MANAGEMENT SOFTWARE MANAGEMENT WEB SERVER DISTRIBUTED DATABASE DISTRIBUTED FILE SYSTEM APPLICATION MONITORING SECURITY LOAD BALANCING ???????
  • 16. Designing for Scale and Reliability
  • 17. Designing for Scale and Reliability
  • 18. Designing for Scale and Reliability
  • 19. Designing for Scale and Reliability Google App Engine is a platform for building scalable web applications and mobile backends. App Engine provides you with built-in services and APIs such as NoSQL datastores, memcache, and a user authentication API, common to most applications. App Engine will scale your application automatically in response to the amount of traffic it receives so you only pay for the resources you use. Just upload your code and Google will manage your app's availability. There are no servers for you to provision or maintain
  • 20. Designing for Scale and Reliability Key Features of Google App Engine •Start Quickly, Build Faster built-in services such as load balancing, health checks, and application logging •Automatic Scaling App Engine offers built-in auto-scaling so that your apps can instantly scale automatically based on need, from zero to millions of users. •Automated Security Scanning Security Scanner automatically scans and detects common web application vulnerabilities. •Use the Tools You Love App Engine works with popular development tools such as Eclipse, IntelliJ, Maven, Git, Jenkins, and PyCharm
  • 21. Designing for Scale and Reliability The App Engine Encapsulate Them All What if you have: •Hardware failures •Traffic Spike •Growing Big Data •No initial fund •No one to build/operate
  • 22. Designing for Scale and Reliability App Engine design motivations Encourage Google’s best practice for scalability and reliability Non-relational data model by Datastore/Bigtable  Sharding, Denormalization… Portable and fine-grained app design  Fast request handling to optimize server resource utilization  Independent to each physical server It’s not just a hosting service: App Engine empowers you to design your app in Google way!
  • 23. How Front End works
  • 24. hat Benefits will Front End provide? Huge difference between the traffic volume on the orange line (the number of requests) and blue line (the number of requests handled by application) How Front End works
  • 25. hat Benefits will Front End provide? Huge difference between the traffic volume on the orange line (the number of requests) and blue line (the number of requests handled by application) How Front End works
  • 26. Life of a Request in Front End How Front End works GFE closest to the user provides edge caching capability AE FE provides load balancing on App Servers and Static Servers
  • 27. How App Engine works
  • 28. How App Engine works How App Server works
  • 29. How App Engine works What is an Application Instance? Similar to a virtual machine, provides a runtime environment for your app •has dedicated memory for your app •but fully managed No burden of managing OS; the overhead, device drivers, security..
  • 30. How App Engine works ntend and Backend Instances Frontend instances (not App Engine Front End) •Dynamically created and deleted = low cost •Enforce fast response and stateless design •Suitable for processing short-lived requests Backend instances •Statically created and deleted = higher cost •No limit for response time, support stateful design •Suitable for batch processing
  • 31. How App Engine works How Frontend instances Scale •App Engine watches pending request queue of each instances •Let’s see what would happen if your app gets a traffic spike •Instances dynamically added/removed based on queue size Pending request queue
  • 32. How App Engine works How Frontend instances Scale •App Engine watches pending request queue of each instances •Let’s see what would happen if your app gets a traffic spike •Instances dynamically added/removed based on queue size Pending request queue Idle Instances Pending Latency
  • 33. How App Engine works Pending Latency •Time to hold request in pending queue before creating new instances •Less latency responds faster but costs more
  • 34. How App Engine works What are idle instances? •Number of instances always available •Higher number responds faster but costs more
  • 35. How App Engine works Key Takeaways App Engine encapsulate all the cost and effort •To build and operate a web app with Google scale and reliability •Encourage Google’s best practices for scalability and reliability •Significantly lower Total Cost of Ownership Front End provides scalability and reliability by: •Edge Caching by Google Front End •Load Balancing by App Engine Front End App server controls scalability by: •Dynamic control of Frontend and Backend instances •Managing Pending Latency and Idle Instances