how serverless computing enables microservices and micropayment

33
Mitoc Group Inc AWS Technology Partner How Serverless Computing Enables Microservices and Micropayments #ServerlessConf, London UK October 2016

Upload: mitoc-group-inc

Post on 08-Feb-2017

280 views

Category:

Software


0 download

TRANSCRIPT

Page 1: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

How Serverless Computing Enables Microservices and

Micropayments#ServerlessConf, London UK

October 2016

Page 2: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

The Challenge

Page 3: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Werner Vogels, CTO @ Amazon.com

Page 4: How Serverless Computing Enables Microservices and Micropayment

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

Page 5: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

About

• Eugene Istrati

[email protected]

• 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

Page 6: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Agenda• Serverless Infrastructure

• Transform any Web App to use Serverless Computing

• Microservices Architecture

• Micropayments Platform

• Q&A

Page 7: How Serverless Computing Enables Microservices and Micropayment

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”?

Page 8: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

@adrianco

Page 9: How Serverless Computing Enables Microservices and Micropayment

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

Page 10: How Serverless Computing Enables Microservices and Micropayment

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

Page 11: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Agenda• Serverless Infrastructure

• Transform any Web App to use Serverless Computing

• Microservices Architecture

• Micropayments Platform

• Q&A

Page 12: How Serverless Computing Enables Microservices and Micropayment

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

Page 13: How Serverless Computing Enables Microservices and Micropayment

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

Page 14: How Serverless Computing Enables Microservices and Micropayment

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

Page 15: How Serverless Computing Enables Microservices and Micropayment

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

Page 16: How Serverless Computing Enables Microservices and Micropayment

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

Page 17: How Serverless Computing Enables Microservices and Micropayment

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

Page 18: How Serverless Computing Enables Microservices and Micropayment

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

Page 19: How Serverless Computing Enables Microservices and Micropayment

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

Page 20: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Availability Zone A Availability Zone B

Serverless Infrastructure: Data TierDB Tier

SQS DynamoDB

RDS Aurora

Page 21: How Serverless Computing Enables Microservices and Micropayment

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

Page 22: How Serverless Computing Enables Microservices and Micropayment

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

Page 23: How Serverless Computing Enables Microservices and Micropayment

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

Page 24: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Agenda• Serverless Infrastructure

• Transform any Web App to use Serverless Computing

• Microservices Architecture

• Micropayments Platform

• Q&A

Page 25: How Serverless Computing Enables Microservices and Micropayment

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

Page 26: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Google Trends: Microservices

Page 27: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

First Demo of the Day

Page 29: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Agenda• Serverless Infrastructure

• Transform any Web App to use Serverless Computing

• Microservices Architecture

• Micropayments Platform

• Q&A

Page 30: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Second Demo of the Day

Page 31: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Agenda• Serverless Infrastructure

• Transform any Web App to use Serverless Computing

• Microservices Architecture

• Micropayments Platform

• Q&A

Page 32: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

Q&A + Next Steps

github.com/MitocGroup blog.mitocgroup.com slideshare.net/MitocGroup

Page 33: How Serverless Computing Enables Microservices and Micropayment

Mitoc Group IncAWS Technology Partner

ServerlessConf London 2016

Thank You!Special Thanks to Peter & Sam from