SlideShare a Scribd company logo
1 of 42
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Xiang Shen
Sr. Solutions Architect, Amazon Web Services
SESSION #194306
Developing Serverless Application on
AWS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What to expect from this session
Serverless Overview
Serverless Development
Demo
>
>
>
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Overview
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A serverless world…
Build and run
applications
without thinking about
servers
… pay per request not
for idle
“
Scales with usage High availability
built-in
Never pay for idle No servers
to provision
or manage
“
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
Orchestration and State Management
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
An expanding serverless community
Build and CI/CD
Logging and MonitoringApplications and Deployment
Chalice Framework Serverless Java Container
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Development
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical day for a developer…
Manager “We need an app to let our customers provide feedback – our
competitors just launched the same thing, so I need it fast. I don’t want to
pay a lot for it, especially when no one is using it. But remember that
we’re growing, so make sure it scales great and is easy to manage and
operate. And you’re on your own – sorry!”
Developer “Not a problem. I’ll make it serverless…”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Joe promised his boss an app.
Now what?
Step 0: Requirement analysis, high level design…
Step 1: Design decisions - what to use?
Serverless web app with
…an API ???
…access to existing data stored in ???
…static content served by ???
…dynamic content/business logic encoded as ???
What we need
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building an API with Amazon API Gateway
Internet
Mobile Apps
Websites
Services
AWS Lambda
functionsAPI Gateway
Cache
Endpoints on
Amazon EC2
All publicly
accessible
endpoints
Amazon
CloudWatch
Monitoring
Amazon
CloudFront
Any other
AWS service
Endpoints on
Amazon VPC
Cognito
Authorizer
Lambda
Authorizer
API Authorization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Accessing stored data in Amazon DynamoDB
Dead Simple
• GetItem(primaryKey)
• PutItem(item)
Amazon DynamoDB
Accelerator
Amazon DynamoDB
Applications
Amazon DynamoDB - Streams
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serving static content with S3 and Cloudfront
Icon made by FlatIcon
Amazon CloudFront Amazon S3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Business logic encoded in AWS Lambda
SERVICES (ANYTHING)
Changes in
data state
Requests to
endpoints
Changes in
resource state
EVENT SOURCE FUNCTION
Node.js
Python
Java
C#
Golang
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bringing it all together…
Amazon S3
Amazon
CloudFront
Static
Content
Content
Delivery
API
Layer
Application
Layer
Persistency
Layer
API
Gateway
Amazon
DynamoDB
AWS
Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical day for a Serverless developer…
Joe promised his boss an app.
Design decisions:
Serverless web app with
…an API hosted on Amazon API Gateway
…access to existing data stored in Amazon DynamoDB
…static content served by Amazon S3 and Amazon CloudFront
…dynamic content/business logic encoded as Lambda functions
What we need
What’s next?
Step 2: Find working examples and get started!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Next, Joe needs to make some changes.
Step 3: Customize and share
IDE for local dev/test/debug ???
Customize the app we deployed in step 1 ???
Set up a CI/CD pipeline for the team ???
Deploy ???
What we need
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Serverless Application Model (SAM)
CloudFormation extension optimized for
serverless
New serverless resource types:
functions, APIs, and tables
Supports anything CloudFormation
supports
Open specification (Apache 2.0)github.com/awslabs
serverless-application-model
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SAM template
AWSTemplateFormatVersion:"2010-09-09"
Transform:AWS::Serverless-2016-10-31
Resources:
GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri:s3://sam-demo-bucket/todo_list.zip
Handler:index.gethtml
Runtime:nodejs6.10
Policies: AmazonDynamoDBReadOnlyAccess
Events:
GetHtml:
Type: Api
Properties:
Path:/{proxy+}
Method:ANY
ListTable:
Type: AWS::Serverless::SimpleTable
Tells CloudFormation this is a SAM
template it needs to “transform”
Creates a Lambda function with the
referenced managed IAM policy,
runtime, code at the referenced zip
location, and handler as defined.
Also creates an API Gateway and
takes care of all
mapping/permissions necessary
Creates a DynamoDB table with 5
Read & Write units
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing SAM Local
CLI tool for local testing of serverless
apps
Works with Lambda functions and
“proxy-style” APIs
Response object and function logs
available on your local machine
Supports all native runtimes
github.com/awslabs
aws-sam-local
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cloud native IDE in AWS Cloud 9
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automated CI/CD process
‘git push’ your changes from Cloud9
when ready to share…
Set up an AWS CodePipeline to
build automatically on updates
Local Testing
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Next, Joe needs to make some changes.
Step 3: Customize and share
Need an IDE for local dev/test/debug – AWS Cloud 9 and AWS SAM Local
Customize the app we deployed in step 1 – AWS Cloud 9
Set up a CI/CD pipeline for the team – AWS CodeStar
Deploy (safely!) – SAM and CodeDeploy
What we need
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Now Joe needs to secure the application.
Step 4: Enforce AuthN and AuthZ
User management ???
User sign-up and sign-in ???
API access ???
Protect static assets ???
Other AWS resources ???
What we need
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Cognito user pools
Internet
Mobile apps
Partner
Services
Amazon Cognito
Websites
User login
Well known
OIDC check
OIDC token
API Gateway
AWS Lambda
functions
Endpoints on
Amazon EC2
Any publicly
accessible endpoint
AWS cloud
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Now Joe needs to secure the application.
Step 3: Enforce AuthN and AuthZ
User management Amazon Cognito user pool
User sign-up and sign-in Amazon Cognito user pool hosted UI
API access Amazon API gateway authorizer
Protect static assets Amazon API gateway authorizer
Other AWS resources Amazon API gateway authorizer
What we need
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimization & Enhancement
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
REST API vs GraphQL
Traditional data-fetching GraphQL
/posts
/postInfo
/postJustTitle
/postsByAuthor
/postNameStartsWithX
/commentsOnPost
Open, declarative data-fetching specification
!= Graph database
Use NoSQL, Relational, HTTP, etc.
GraphQL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does GraphQL work?
{
"id":"1",
"name":"Get Milk",
"priority":"1"
},
{
"id":“2",
"name":“Go togym",
"priority":“5"
},…
typeQuery{
getTodos:[Todo]
}
typeTodo{
id:ID!
name:String
description:String
priority:Int
duedate:String
}
query{
getTodos{
id
name
priority
}
}
Model data with
application schema
Client requests what it
needs
Only that data is
returned
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GraphQL
Schema
typeEvent{
id:ID!
name:String
where:String
when:String
description:String
comments:[Comment]
}
typeComment{
commentId:String!
eventId:ID!
content:String!
createdAt:String!
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GraphQL
Schema
Mutation
typeMutation{
createEvent(
name:String!,
when:String!,
where:String!,
description:String!
):Event
deleteEvent(id:ID!): Event
commentOnEvent(
eventId:ID!,
content:String!,
createdAt:String!
):Comment
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GraphQL
Schema
Mutation
Query
typeQuery{
getEvent(id:ID!): Event
listEvents(
limit:Int,
nextToken:String
):EventConnection
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GraphQL
Schema
Mutation
Query
Subscription
typeSubscription{
subscribeToEventComments(eventId:String!):Comment
@aws_subscribe(mutations:["commentOnEvent"])
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GraphQL
Schema
Mutation
Query
Subscription
Realtime? YES
Batching? YES
Pagination? YES
Relations? YES
Aggregations? YES
Search? YES
Offline? YES
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing AWS AppSync
Managed service for application data using GraphQL with
real-time capabilities and an offline programming model
- Connect to resources in your account
- Make your data services in real time or offline
- Use AWS services with GraphQL
- Automatic sync, conflict resolution in the cloud
- Enterprise-level security features
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
Upload
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Online/Offline
AppSync
API
Cognito
User Pool
Legacy
Application
RDS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Offline
AppSync
API
Cognito
User Pool
Legacy
Application
RDS
Autogenerate
Schema
Real-time
Online/Offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon API Gateway AWS AppSync
&
API Gateway + AppSync
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete the session survey in
the summit mobile app.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!

More Related Content

What's hot

Orchestrating AWS Lambda with AWS Step Functions
Orchestrating AWS Lambda with AWS Step Functions Orchestrating AWS Lambda with AWS Step Functions
Orchestrating AWS Lambda with AWS Step Functions Amazon Web Services
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingAmazon Web Services
 
Build a Serverless Backend for Requesting a Ride
Build a Serverless Backend for Requesting a RideBuild a Serverless Backend for Requesting a Ride
Build a Serverless Backend for Requesting a RideAmazon Web Services
 
Productionize Serverless Application Building and Deployments with AWS SAM - ...
Productionize Serverless Application Building and Deployments with AWS SAM - ...Productionize Serverless Application Building and Deployments with AWS SAM - ...
Productionize Serverless Application Building and Deployments with AWS SAM - ...Amazon Web Services
 
Wild-Rydes-Workshop-Image-Processing
Wild-Rydes-Workshop-Image-ProcessingWild-Rydes-Workshop-Image-Processing
Wild-Rydes-Workshop-Image-ProcessingAmazon Web Services
 
GraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaGraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaAleksandr Maklakov
 
Coordinating Microservices with AWS Step Functions.pdf
Coordinating Microservices with AWS Step Functions.pdfCoordinating Microservices with AWS Step Functions.pdf
Coordinating Microservices with AWS Step Functions.pdfAmazon Web Services
 
Building AWS Lambda Applications with the AWS Serverless Application Model (A...
Building AWS Lambda Applications with the AWS Serverless Application Model (A...Building AWS Lambda Applications with the AWS Serverless Application Model (A...
Building AWS Lambda Applications with the AWS Serverless Application Model (A...Amazon Web Services
 
Building APIs with Amazon API Gateway
Building APIs with Amazon API GatewayBuilding APIs with Amazon API Gateway
Building APIs with Amazon API GatewayAmazon Web Services
 
Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用Amazon Web Services
 
User Authentication and Identity with Amazon Cognito
User Authentication and Identity with Amazon CognitoUser Authentication and Identity with Amazon Cognito
User Authentication and Identity with Amazon CognitoAmazon Web Services
 
AWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAmazon Web Services
 
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...Amazon Web Services
 
Build a Web Authentication System with a Custom UI
Build a Web Authentication System with a Custom UIBuild a Web Authentication System with a Custom UI
Build a Web Authentication System with a Custom UIAmazon Web Services
 
Deep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY LoftDeep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY LoftAmazon Web Services
 
Invite Your Prospects With an Engaging Email Campaign
Invite Your Prospects With an Engaging Email CampaignInvite Your Prospects With an Engaging Email Campaign
Invite Your Prospects With an Engaging Email CampaignAmazon Web Services
 
Unlocking Agility with the AWS Serverless Application Model (SAM)
Unlocking Agility with the AWS Serverless Application Model (SAM)Unlocking Agility with the AWS Serverless Application Model (SAM)
Unlocking Agility with the AWS Serverless Application Model (SAM)Amazon Web Services
 

What's hot (20)

Orchestrating AWS Lambda with AWS Step Functions
Orchestrating AWS Lambda with AWS Step Functions Orchestrating AWS Lambda with AWS Step Functions
Orchestrating AWS Lambda with AWS Step Functions
 
Containers - State of the Union
Containers - State of the UnionContainers - State of the Union
Containers - State of the Union
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Build a Serverless Backend for Requesting a Ride
Build a Serverless Backend for Requesting a RideBuild a Serverless Backend for Requesting a Ride
Build a Serverless Backend for Requesting a Ride
 
Productionize Serverless Application Building and Deployments with AWS SAM - ...
Productionize Serverless Application Building and Deployments with AWS SAM - ...Productionize Serverless Application Building and Deployments with AWS SAM - ...
Productionize Serverless Application Building and Deployments with AWS SAM - ...
 
Wild-Rydes-Workshop-Image-Processing
Wild-Rydes-Workshop-Image-ProcessingWild-Rydes-Workshop-Image-Processing
Wild-Rydes-Workshop-Image-Processing
 
GraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaGraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS Lambda
 
Coordinating Microservices with AWS Step Functions.pdf
Coordinating Microservices with AWS Step Functions.pdfCoordinating Microservices with AWS Step Functions.pdf
Coordinating Microservices with AWS Step Functions.pdf
 
Building AWS Lambda Applications with the AWS Serverless Application Model (A...
Building AWS Lambda Applications with the AWS Serverless Application Model (A...Building AWS Lambda Applications with the AWS Serverless Application Model (A...
Building AWS Lambda Applications with the AWS Serverless Application Model (A...
 
Building APIs with Amazon API Gateway
Building APIs with Amazon API GatewayBuilding APIs with Amazon API Gateway
Building APIs with Amazon API Gateway
 
Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用Java Developer on AWS 在AWS上開發Java應用
Java Developer on AWS 在AWS上開發Java應用
 
User Authentication and Identity with Amazon Cognito
User Authentication and Identity with Amazon CognitoUser Authentication and Identity with Amazon Cognito
User Authentication and Identity with Amazon Cognito
 
Deep Dive into Amazon Fargate
Deep Dive into Amazon FargateDeep Dive into Amazon Fargate
Deep Dive into Amazon Fargate
 
AWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern ApplicationsAWS ECS Workshop A Journey to Modern Applications
AWS ECS Workshop A Journey to Modern Applications
 
Serverless Architectures.pdf
Serverless Architectures.pdfServerless Architectures.pdf
Serverless Architectures.pdf
 
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...
Getting Started with Serverless Architectures with Microservices_AWSPSSummit_...
 
Build a Web Authentication System with a Custom UI
Build a Web Authentication System with a Custom UIBuild a Web Authentication System with a Custom UI
Build a Web Authentication System with a Custom UI
 
Deep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY LoftDeep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY Loft
 
Invite Your Prospects With an Engaging Email Campaign
Invite Your Prospects With an Engaging Email CampaignInvite Your Prospects With an Engaging Email Campaign
Invite Your Prospects With an Engaging Email Campaign
 
Unlocking Agility with the AWS Serverless Application Model (SAM)
Unlocking Agility with the AWS Serverless Application Model (SAM)Unlocking Agility with the AWS Serverless Application Model (SAM)
Unlocking Agility with the AWS Serverless Application Model (SAM)
 

Similar to Developing Serverless Application on AWS

Introduction to Serverless on AWS
Introduction to Serverless on AWSIntroduction to Serverless on AWS
Introduction to Serverless on AWSAmazon Web Services
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Amazon Web Services
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivBoaz Ziniman
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Amazon Web Services
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...AWS Germany
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsAmazon Web Services
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubBoaz Ziniman
 
Forza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessForza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessAmazon Web Services
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep DiveAmazon Web Services
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Amazon Web Services
 
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Amazon Web Services
 
Building serverless enterprise applications - SRV315 - Toronto AWS Summit
Building serverless enterprise applications - SRV315 - Toronto AWS SummitBuilding serverless enterprise applications - SRV315 - Toronto AWS Summit
Building serverless enterprise applications - SRV315 - Toronto AWS SummitAmazon Web Services
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversAmazon Web Services
 
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS Summit
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS SummitBuild Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS Summit
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS SummitAmazon Web Services
 
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Amazon Web Services
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Amazon Web Services
 

Similar to Developing Serverless Application on AWS (20)

Introduction to Serverless on AWS
Introduction to Serverless on AWSIntroduction to Serverless on AWS
Introduction to Serverless on AWS
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
 
Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
 
Forza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessForza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni Serverless
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
 
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
 
Building serverless enterprise applications - SRV315 - Toronto AWS Summit
Building serverless enterprise applications - SRV315 - Toronto AWS SummitBuilding serverless enterprise applications - SRV315 - Toronto AWS Summit
Building serverless enterprise applications - SRV315 - Toronto AWS Summit
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about servers
 
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS Summit
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS SummitBuild Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS Summit
Build Enterprise-Grade Serverless Apps - SRV315 - Chicago AWS Summit
 
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
 
What's New in Serverless
What's New in ServerlessWhat's New in Serverless
What's New in Serverless
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
 
Serverless for Developers
Serverless for DevelopersServerless for Developers
Serverless for Developers
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Developing Serverless Application on AWS

  • 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Xiang Shen Sr. Solutions Architect, Amazon Web Services SESSION #194306 Developing Serverless Application on AWS
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What to expect from this session Serverless Overview Serverless Development Demo > > >
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Overview
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A serverless world… Build and run applications without thinking about servers … pay per request not for idle “ Scales with usage High availability built-in Never pay for idle No servers to provision or manage “
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 Orchestration and State Management API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. An expanding serverless community Build and CI/CD Logging and MonitoringApplications and Deployment Chalice Framework Serverless Java Container
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Development
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A typical day for a developer… Manager “We need an app to let our customers provide feedback – our competitors just launched the same thing, so I need it fast. I don’t want to pay a lot for it, especially when no one is using it. But remember that we’re growing, so make sure it scales great and is easy to manage and operate. And you’re on your own – sorry!” Developer “Not a problem. I’ll make it serverless…”
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Joe promised his boss an app. Now what? Step 0: Requirement analysis, high level design… Step 1: Design decisions - what to use? Serverless web app with …an API ??? …access to existing data stored in ??? …static content served by ??? …dynamic content/business logic encoded as ??? What we need
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Building an API with Amazon API Gateway Internet Mobile Apps Websites Services AWS Lambda functionsAPI Gateway Cache Endpoints on Amazon EC2 All publicly accessible endpoints Amazon CloudWatch Monitoring Amazon CloudFront Any other AWS service Endpoints on Amazon VPC Cognito Authorizer Lambda Authorizer API Authorization
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Accessing stored data in Amazon DynamoDB Dead Simple • GetItem(primaryKey) • PutItem(item) Amazon DynamoDB Accelerator Amazon DynamoDB Applications Amazon DynamoDB - Streams
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serving static content with S3 and Cloudfront Icon made by FlatIcon Amazon CloudFront Amazon S3
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Business logic encoded in AWS Lambda SERVICES (ANYTHING) Changes in data state Requests to endpoints Changes in resource state EVENT SOURCE FUNCTION Node.js Python Java C# Golang
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Bringing it all together… Amazon S3 Amazon CloudFront Static Content Content Delivery API Layer Application Layer Persistency Layer API Gateway Amazon DynamoDB AWS Lambda
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A typical day for a Serverless developer… Joe promised his boss an app. Design decisions: Serverless web app with …an API hosted on Amazon API Gateway …access to existing data stored in Amazon DynamoDB …static content served by Amazon S3 and Amazon CloudFront …dynamic content/business logic encoded as Lambda functions What we need What’s next? Step 2: Find working examples and get started!
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Next, Joe needs to make some changes. Step 3: Customize and share IDE for local dev/test/debug ??? Customize the app we deployed in step 1 ??? Set up a CI/CD pipeline for the team ??? Deploy ??? What we need
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Serverless Application Model (SAM) CloudFormation extension optimized for serverless New serverless resource types: functions, APIs, and tables Supports anything CloudFormation supports Open specification (Apache 2.0)github.com/awslabs serverless-application-model
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. SAM template AWSTemplateFormatVersion:"2010-09-09" Transform:AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri:s3://sam-demo-bucket/todo_list.zip Handler:index.gethtml Runtime:nodejs6.10 Policies: AmazonDynamoDBReadOnlyAccess Events: GetHtml: Type: Api Properties: Path:/{proxy+} Method:ANY ListTable: Type: AWS::Serverless::SimpleTable Tells CloudFormation this is a SAM template it needs to “transform” Creates a Lambda function with the referenced managed IAM policy, runtime, code at the referenced zip location, and handler as defined. Also creates an API Gateway and takes care of all mapping/permissions necessary Creates a DynamoDB table with 5 Read & Write units
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing SAM Local CLI tool for local testing of serverless apps Works with Lambda functions and “proxy-style” APIs Response object and function logs available on your local machine Supports all native runtimes github.com/awslabs aws-sam-local
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cloud native IDE in AWS Cloud 9
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automated CI/CD process ‘git push’ your changes from Cloud9 when ready to share… Set up an AWS CodePipeline to build automatically on updates Local Testing
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Next, Joe needs to make some changes. Step 3: Customize and share Need an IDE for local dev/test/debug – AWS Cloud 9 and AWS SAM Local Customize the app we deployed in step 1 – AWS Cloud 9 Set up a CI/CD pipeline for the team – AWS CodeStar Deploy (safely!) – SAM and CodeDeploy What we need
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Now Joe needs to secure the application. Step 4: Enforce AuthN and AuthZ User management ??? User sign-up and sign-in ??? API access ??? Protect static assets ??? Other AWS resources ??? What we need
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Cognito user pools Internet Mobile apps Partner Services Amazon Cognito Websites User login Well known OIDC check OIDC token API Gateway AWS Lambda functions Endpoints on Amazon EC2 Any publicly accessible endpoint AWS cloud
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Now Joe needs to secure the application. Step 3: Enforce AuthN and AuthZ User management Amazon Cognito user pool User sign-up and sign-in Amazon Cognito user pool hosted UI API access Amazon API gateway authorizer Protect static assets Amazon API gateway authorizer Other AWS resources Amazon API gateway authorizer What we need
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimization & Enhancement
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. REST API vs GraphQL Traditional data-fetching GraphQL /posts /postInfo /postJustTitle /postsByAuthor /postNameStartsWithX /commentsOnPost Open, declarative data-fetching specification != Graph database Use NoSQL, Relational, HTTP, etc. GraphQL
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does GraphQL work? { "id":"1", "name":"Get Milk", "priority":"1" }, { "id":“2", "name":“Go togym", "priority":“5" },… typeQuery{ getTodos:[Todo] } typeTodo{ id:ID! name:String description:String priority:Int duedate:String } query{ getTodos{ id name priority } } Model data with application schema Client requests what it needs Only that data is returned
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. GraphQL Schema typeEvent{ id:ID! name:String where:String when:String description:String comments:[Comment] } typeComment{ commentId:String! eventId:ID! content:String! createdAt:String! }
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. GraphQL Schema Mutation typeMutation{ createEvent( name:String!, when:String!, where:String!, description:String! ):Event deleteEvent(id:ID!): Event commentOnEvent( eventId:ID!, content:String!, createdAt:String! ):Comment }
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. GraphQL Schema Mutation Query typeQuery{ getEvent(id:ID!): Event listEvents( limit:Int, nextToken:String ):EventConnection }
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. GraphQL Schema Mutation Query Subscription typeSubscription{ subscribeToEventComments(eventId:String!):Comment @aws_subscribe(mutations:["commentOnEvent"]) }
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. GraphQL Schema Mutation Query Subscription Realtime? YES Batching? YES Pagination? YES Relations? YES Aggregations? YES Search? YES Offline? YES
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing AWS AppSync Managed service for application data using GraphQL with real-time capabilities and an offline programming model - Connect to resources in your account - Make your data services in real time or offline - Use AWS services with GraphQL - Automatic sync, conflict resolution in the cloud - Enterprise-level security features
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS AppSync DynamoDB Table Lambda Function Elasticsearch Service GraphQL Schema Upload Schema GraphQL Query Mutation Subscription Real-time Online/Offline AppSync API Cognito User Pool Legacy Application RDS
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS AppSync DynamoDB Table Lambda Function Elasticsearch Service GraphQL Schema GraphQL Query Mutation Subscription Real-time Offline AppSync API Cognito User Pool Legacy Application RDS Autogenerate Schema Real-time Online/Offline
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon API Gateway AWS AppSync & API Gateway + AppSync
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Please complete the session survey in the summit mobile app.
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank you!