Your APIs can be soft and fluffy

16
APIdays NZ 2015 Your APIs can be soft and fluffy in the cloud Shiva N (@shivamaan) Solution Architect

Transcript of Your APIs can be soft and fluffy

Page 1: Your APIs can be soft and fluffy

APIdays NZ 2015

Your APIs can be soft and fluffy in the cloud

Shiva N (@shivamaan) Solution Architect

Page 2: Your APIs can be soft and fluffy

APIdays NZ 2015

Page 3: Your APIs can be soft and fluffy

APIdays NZ 2015

API Management

APIs

Access Control & Security

Metrics, Monitoring & Analytics

Infrastructure and backend systems

Billing

Page 4: Your APIs can be soft and fluffy

APIdays NZ 2015

Application

Files

DB

API Calls

Websites(JavaScriptApps)

MobileApps

Wearable

Services

API Calls

Authentication& Authorization

API Calls

Caching and Throttling

Business Logic

Monitoring and Analytics

Page 5: Your APIs can be soft and fluffy

APIdays NZ 2015

Challenges

§ Identity and Access control

§ Metrics, Monitoring and Analytics

§ Infrastructure (Compute and Storage)

§ Scaling

Page 6: Your APIs can be soft and fluffy

APIdays NZ 2015

No server is easier to manage than “no server”Werner Vogels

Page 7: Your APIs can be soft and fluffy

APIdays NZ 2015

AuthenticationProviders

End Users

UserCredentials

AuthenticationToken

Amazon CognitoIdentity Broker

Identity Pool Id(Token)

Identity IdAWS Temp Credentials(Depending onAuth / Unauth Role)

Access toAWS Services(Including AmazonAPI Gateway)

Identity IdAWS Temp Credentials

AmazonMobile Analytics

Amazon CognitoSync Store

K / VCheck Token

Identity & Access Control

Page 8: Your APIs can be soft and fluffy

APIdays NZ 2015

Cloudwatch Metrics

Page 9: Your APIs can be soft and fluffy

APIdays NZ 2015

Cloudwatch Dashboards

Page 10: Your APIs can be soft and fluffy

APIdays NZ 2015

Compute

EC2, Autoscaling

PHPPythonJavaRuby

Node.js.NETGo

Docker

Elastic BeanstalkElastic Container Service

Control Convenience

Page 11: Your APIs can be soft and fluffy

APIdays NZ 2015

Business Logic

AWSLambda

AWS LambdaFunctions

AmazonAPI Gateway

Amazon S3

AmazonDynamoDB

Amazon CognitoSync Store

K / VAmazonSNS

AmazonKinesis

IoT Devices

HTTPSInvoke

CustomEvents

HTTPSREST

API Call

Compute – Event Driven

Page 12: Your APIs can be soft and fluffy

APIdays NZ 2015

Storage

Data Warehouse

Redshift

Cache

Elasticache

NoSQL

Dynamo DB

Relational Database

RDS

Object Store

S3

Page 13: Your APIs can be soft and fluffy

APIdays NZ 2015

Internet

Mobile Apps

Websites

Services

API Gateway

AWS Lambda functions

AWS

API Gateway Cache

Endpoints on Amazon EC2 / Amazon Elastic

Beanstalk

Any other publicly accessible endpoint

Amazon CloudWatch Monitoring

Access Control

Putting it all together

Page 14: Your APIs can be soft and fluffy

APIdays NZ 2015

λ

λ λ

AmazonAPI Gateway

λ

λ

λλ

Bucket UsageTable

Media MetadataTable

User StatTable

UserLocationTable

K / V

λ

λ

λ

Amazon CognitoIdentity Broker

Amazon CognitoSync Store

AmazonSNS

AmazonKinesis

MediaBucket

LogTable

Authentication&

AuthorizationUpload Picture / VideoUpdate Bucket UsageCheck Bucket Usage

Delete“Over Quota”

Media

Send Notificationto

User / Application

Extract Metadata and Write on DB

UpdateUser Statistics

Call REST APIto Get

Media DescriptionUpload

Location InfoUpdate

User LocationLook for

Users or MediaNear Current Location

Call REST APIto Get

User Info

SyncMedia and User

Rating

WriteHistory of ChangesCheck and Update

Ratings

Invoke

Read

Write / Send

Page 15: Your APIs can be soft and fluffy

APIdays NZ 2015

Focus on Your Idea

Page 16: Your APIs can be soft and fluffy

APIdays NZ 2015

Thanks for listening…

Shiva N (@shivamaan)