Scalable applications are by nature resource intensive, expensive to build and difficult to manage. AWS, through the serverless computing initiative, is changing this perception. In this session, Eugene Istrati from Mitoc Group shows how they are using serverless building blocks like S3, CloudFront, API Gateway, Lambda, DynamoDB, SQS, Elasticache – and this is only the foundation.
4. Mitoc Group Inc
AWS 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
5. Mitoc Group Inc
AWS Technology Partner
About
• Eugene Istrati
• eugene@mitocgroup.com
• 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
• Media and Entertainment Industry
6. Mitoc Group Inc
AWS Technology Partner
Agenda
• Serverless Infrastructure
• Transform any Web App to use Serverless
• Microservices Architecture
• Micropayments Platform
• Q&A
7. Mitoc Group Inc
AWS 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”?
8. Mitoc Group Inc
AWS Technology Partner
Serverless Options
Storage DatabaseNetwork
Compute Content DeliveryMessaging and QueuesSecurity
Gateways
User Management Monitoring & Logging
Internet of Things
Machine Learning
Streaming Analytics
9. Mitoc Group Inc
AWS Technology Partner
Do It Yourself on AWS
https://blog.mitocgroup.com/how-to-create-
serverless-environments-on-aws-8485ae039765
and
https://www.youtube.com/playlist?list=PLPGfD-
tGOl7sr6R9fZjNp3-qwWIxiShT5
10. Mitoc Group Inc
AWS Technology Partner
Agenda
• Serverless Infrastructure
• Transform any Web App to use Serverless
• Microservices Architecture
• Micropayments Platform
• Q&A
11. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure
Availability Zone A
Availability Zone B
Auto Scaling Group
Auto Scaling Group
www.example.com
static.example.com
web
servers
web
servers
app
servers
app
servers
S3 bucket
CloudFront
distribution
Web Tier
Cognito
Identity
DB Tier
SQS
DynamoDB
Lambda
CloudFront
logs
API Gateway
www.example.com
static.example.com
App Tier
AWS Region
RDS Aurora
12. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFront
distribution
Web Tier
Cognito
Identity
CloudFront
logs
www.example.com
static.example.com
Availability Zone A
Availability Zone B
Auto Scaling Group
www.example.com
static.example.com
web
servers
web
servers
13. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFront
distribution
Web Tier
Cognito
Identity
CloudFront
logs
www.example.com
static.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
14. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFront
distribution
Web Tier
Cognito
Identity
CloudFront
logs
www.example.com
static.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
15. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure: Web Tier
S3 bucket
CloudFront
distribution
Web Tier
Cognito
Identity
CloudFront
logs
www.example.com
static.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
16. Mitoc Group Inc
AWS Technology Partner
Serverless Infrastructure: App Tier
Cognito
Identity
SQS
Lambda
API Gateway
App Tier
Availability Zone A
Availability Zone B
Auto Scaling Group
app
servers
app
servers
17. Mitoc Group Inc
AWS Technology Partner
Cognito
Identity
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
18. Mitoc Group Inc
AWS 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
Cognito
Identity
SQS
Lambda
API Gateway
App Tier
19. Mitoc Group Inc
AWS Technology Partner
Availability Zone A
Availability Zone B
Serverless Infrastructure: Data Tier
DB Tier
SQS
DynamoDB
RDS Aurora
20. Mitoc Group Inc
AWS 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
21. Mitoc Group Inc
AWS 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
22. Mitoc Group Inc
AWS 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
23. Mitoc Group Inc
AWS Technology Partner
Agenda
• Serverless Infrastructure
• Transform any Web App to use Serverless
• Microservices Architecture
• Micropayments Platform
• Q&A
24. Mitoc Group Inc
AWS 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