15
Microservices without Servers Ashan Fernando

Microservices without servers

Embed Size (px)

Citation preview

Page 1: Microservices without servers

Microservices without Servers

Ashan Fernando

Page 2: Microservices without servers
Page 3: Microservices without servers

Why Managing Servers is Difficult?• Provision & Manage

VM Instances

• Patching OperatingSystems

• Update Software

• Extra Effort to Handle Failures

Page 4: Microservices without servers

Managing a Fleet of Microservices is Hard

Page 5: Microservices without servers

What if you can build Microservice without Servers?• Fully Managed• No provisioning• Zero Administration• High Availability

• Developer Productivity• Focus on Code• Innovate rapidly• Reduce time to market

• Continuous Scaling• Automatically• Both Scale Up and Down

Credits: AWS Webniar Series

Page 6: Microservices without servers

Lambda – Computation

API Gateway – API Management

S3 – File Storage & Delivery

CloudFront – CDN and Basic Routing

DynamoDB – NoSQL Database

Units of a Serverless Microservice in AWS

Serverless Microservice

Page 7: Microservices without servers

Engine behind AWS Microservices• Event-driven Compute Service

• Innovative cost model for Execution Time

• Automatic scaling

• Currently supports• Java, NodeJS & Python

Page 8: Microservices without servers

AWS API Gateway Web Console

Page 9: Microservices without servers

AWS Lambda Web Console

Page 10: Microservices without servers

Using Serverless Frameworkhttps://serverless.com/

Page 11: Microservices without servers

Serverless MicroservicesCase Study with Amazon Web Services

• Microservices written in NodeJS

• Web Application built with AngularJS

• Hybrid Mobile App built with Ionic Framework

• NoSQL Database using Amazon DynamoDB

Page 12: Microservices without servers

Case Study with AWSSimplified Architecture

Page 13: Microservices without servers

Case Study with AWSServerless Microservices & Web App1. Angular App

• Cloudfront• S3

2. Microservices• Cloudfront• API Gateway• Lambda• DynamoDB• SES

Page 14: Microservices without servers

Case Study with AWSManaged Microservices (Not Serverless)

• Lambda has its own limits• Cold Start vs Hot Start

• Not fitting some use cases• Services with dependencies

with large libraries• Services with logic operated on

a single, medium to largedataset

• Why Managed Docker?

Page 15: Microservices without servers