Upload
mitoc-group-inc
View
280
Download
0
Embed Size (px)
Citation preview
Mitoc Group IncAWS Technology Partner
How Serverless Computing Enables Microservices and
Micropayments#ServerlessConf, London UK
October 2016
Mitoc Group IncAWS Technology Partner
The Challenge
Mitoc Group IncAWS Technology Partner
Werner Vogels, CTO @ Amazon.com
Mitoc Group IncAWS Technology Partner
Werner Vogels, CTO @ Amazon.com
• on weekends, when you’re having couple of drinks with friends
• on vacation, when you’re enjoying quality time with entire family
Mitoc Group IncAWS Technology Partner
About
• Eugene Istrati
• Partner @ Mitoc Group Inc
• 15+ years in IT; 7+ years on AWS
• AWS Certified Solutions Architect
• Companies: Hearst, Amazon, GrubHub, Tenaris (Europe)
• Mitoc Group Inc
• www.mitocgroup.com
• Technology Company focusing on Innovative Enterprise Solutions
• AWS Technology Partner
• Featured AWS Lambda Partner
• Creators of AdTechMedia product
Mitoc Group IncAWS Technology Partner
Agenda• Serverless Infrastructure
• Transform any Web App to use Serverless Computing
• Microservices Architecture
• Micropayments Platform
• Q&A
Mitoc Group IncAWS Technology Partner
Not involving a server; composed only of clients.http://www.wordsense.eu/serverless
Serverless doesn’t mean servers are no longer involved. It simply means that developers no longer have to think “that much” about them.
Computing resources get used as services without having to manage physical capacities or limits.
https://www.quora.com/What-is-Serverless-Computing
What is “Serverless”?
Mitoc Group IncAWS Technology Partner
@adrianco
Mitoc Group IncAWS Technology Partner
AWS Serverless Options
Storage DatabaseNetwork
Compute Content DeliveryMessaging and QueuesSecurity
Gateways
User Management Monitoring & Logging
Internet of Things
Machine Learning
Streaming Analytics
Mitoc Group IncAWS Technology Partner
Do It Yourself on AWS
https://blog.mitocgroup.com/how-to-create-serverless-environments-on-aws-8485ae039765
andhttps://www.youtube.com/playlist?list=PLPGfD-tGOl7sr6R9fZjNp3-qwWIxiShT5
Mitoc Group IncAWS Technology Partner
Agenda• Serverless Infrastructure
• Transform any Web App to use Serverless Computing
• Microservices Architecture
• Micropayments Platform
• Q&A
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure
Availability Zone A Availability Zone B
Auto Scaling Group
Auto Scaling Group
www.example.com
static.example.com
webservers
webservers
appservers
appservers
S3 bucket
CloudFrontdistributio
n
Web Tier
CognitoIdentity DB Tier
SQS DynamoDB
LambdaCloudFrontlogs
API Gateway
www.example.comstatic.example.com
App Tier
AWS Region RDS Aurora
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFrontdistribution
Web Tier
CognitoIdentity
CloudFrontlogs
www.example.comstatic.example.com
Availability Zone A Availability Zone B
Auto Scaling Group
www.example.com
static.example.com
webservers
webservers
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFrontdistribution
Web Tier
CognitoIdentity
CloudFrontlogs
www.example.comstatic.example.com
• Static Assets– Same as in reference architecture– css, js, docs, images, videos + html
• Dynamic Functionality– Use JS framework (e.g. Angular)– SEO-friendly (Custom Error Response
+ HTML5 History API)
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFrontdistribution
Web Tier
CognitoIdentity
CloudFrontlogs
www.example.comstatic.example.com
• Static Assets– Same as in reference architecture– css, js, docs, images, videos + html
• Dynamic Functionality– Use JS framework (e.g. Angular)– SEO-friendly (Custom Error Response
+ HTML5 History API)
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFrontdistribution
Web Tier
CognitoIdentity
CloudFrontlogs
www.example.comstatic.example.com
• Static Assets– Same as in reference architecture– css, js, docs, images, videos + html
• Dynamic Functionality– Use JS framework (e.g. Angular)– SEO-friendly (Custom Error Response
+ HTML5 History API)
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: App Tier
CognitoIdentity
SQS
Lambda
API Gateway
App Tier
Availability Zone A Availability Zone B
Auto Scaling Group
appservers
appservers
Mitoc Group IncAWS Technology Partner
CognitoIdentity
SQS
Lambda
API Gateway
App Tier • Accelerated Backend– Write node.js functions and load into
Lambda– Power up Lambda with RESTful
endpoints on API Gateway– Cache, throttle, meter, version, etc.
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
Serverless Infrastructure: App Tier
Mitoc Group IncAWS Technology Partner
• Accelerated Backend– Write node.js functions and load into
Lambda– Power up Lambda with RESTful
endpoints on API Gateway– Cache, throttle, meter, version, etc.
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
Serverless Infrastructure: App Tier
CognitoIdentity
SQS
Lambda
API Gateway
App Tier
Mitoc Group IncAWS Technology Partner
Availability Zone A Availability Zone B
Serverless Infrastructure: Data TierDB Tier
SQS DynamoDB
RDS Aurora
Mitoc Group IncAWS Technology Partner
DB Tier
SQS DynamoDB
RDS Aurora
Serverless Infrastructure: Data Tier• First choice – DynamoDB + SQS
– Schema-free– Scale only reads and writes
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
• Next choice – RDS Aurora– Relational– MySQL-like approach, but 5x better
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Data Tier• First choice – DynamoDB + SQS
– Schema-free– Scale only reads and writes
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
• Next choice – RDS Aurora– Relational– MySQL-like approach, but 5x better
DB Tier
SQS DynamoDB
RDS Aurora
Mitoc Group IncAWS Technology Partner
Serverless Infrastructure: Data Tier• First choice – DynamoDB + SQS
– Schema-free– Scale only reads and writes
• Completely Serverless– Pre-scaled– Low-cost– Low-maintenance
• Next choice – RDS Aurora– Relational– MySQL-compatible, but MUCH better
DB Tier
SQS DynamoDB
RDS Aurora
Mitoc Group IncAWS Technology Partner
Agenda• Serverless Infrastructure
• Transform any Web App to use Serverless Computing
• Microservices Architecture
• Micropayments Platform
• Q&A
Mitoc Group IncAWS Technology Partner
What are “Microservices”?
In computing, microservices is a software architecture style in which complex applications are composed of small, independent processes communicating with each other using language-agnostic APIs. These services are small, highly
decoupled and focus on doing a small task, facilitating a modular approach to system-building.
https://en.wikipedia.org/wiki/Microservices
Mitoc Group IncAWS Technology Partner
Google Trends: Microservices
Mitoc Group IncAWS Technology Partner
First Demo of the Day
Mitoc Group IncAWS Technology Partner
Blue-green Deployments of Serverless AWS
https://blog.mitocgroup.com/blue-green-deployments-for-serverless-powered-applications-on-aws-
22a08447aa72
Mitoc Group IncAWS Technology Partner
Agenda• Serverless Infrastructure
• Transform any Web App to use Serverless Computing
• Microservices Architecture
• Micropayments Platform
• Q&A
Mitoc Group IncAWS Technology Partner
Second Demo of the Day
Mitoc Group IncAWS Technology Partner
Agenda• Serverless Infrastructure
• Transform any Web App to use Serverless Computing
• Microservices Architecture
• Micropayments Platform
• Q&A
Mitoc Group IncAWS Technology Partner
Q&A + Next Steps
github.com/MitocGroup blog.mitocgroup.com slideshare.net/MitocGroup
Mitoc Group IncAWS Technology Partner
ServerlessConf London 2016
Thank You!Special Thanks to Peter & Sam from