Share
Embed
A Wild Ride To Serverless Computing with AWS - Tomer Shaiman
Presented in Sela Developer Meetup:
https://www.meetup.com/Sela-Developer-Meetup/events/256158317/
Sela Developer Meetup
December 12, 2018
Transcript
22 slides
-
Copyright © SELA Software & Education Labs, Ltd. | 14-18
Baruch Hirsch St., Bnei Brak 51202, Israel | www.selagroup.com Tomer Shaiman @tshaiman A Wild Ride To Serverless Computing with AWS -
What to expect from today Serverless Computing Introduction to AWS
resources used in this meetup. Build an end-to-end dynamic web site Having a wild ride…. -
Serverless Computing Fully Managed No Provisioning No System Administration No
Security patches Fault Tolerant Developer Productivity Focus on Application Experiment and innovate quickly Continuous Scaling Scale up and down with demand Never pay for idle resources -
The Services We Are Going to Use Amazon API Gateway
AWS Lambda Amazon DynamoDB Host the API and route API calls Execute our app’s business logic Manage Users and Credentials NoSQL Data store Amazon S3 Simple Storage Service Cognito User Pools -
Wild Rydes Web Site Static HTML / CSS files hosted
on S3 Dynamic Adding user Authentication Adding persistency layer (Db) Add Backend functionality Adding Rest API and securing it -
Amazon Simple Storage Service (S3) Durable, massively scalable object storage
Designed for 99.999999999 % durability 99.99% availability Stores trillions of objects and handles millions of requests per second Integrates with Amazon CloudFront for edge delivery of content across the globe Effectively infinite storage without provisioning capacity -
Lets Build the Static Web Site Using S3 Clone a
repository from web developer/graphic designer: Create a bucket in S3 and configure it for static Web Hosting -
Amazon Cognito User Pools Add user sign-up, sign-in, and data
synchronization to your apps Sign-in to your web application or mobile app using user pools Scale to hundreds of millions of users Use-Cases: User Sign-In and Sign-Up Email or Phone number verification Forgot password User profile SMS-Based authentication (MFA) -
Lets Build the Authentication Layer (Cognito) Create a User Pool
in Cognito Define policies for authentication (password length) Explore the AUTH code in our client Testing against fake users Explore the JWT token -
Amazon DynamoDB Fast and Flexible NoSQL DB Document Key-Value Scales
to any workload Fast and Consistent Dead Simple getItem(PK) PutItem(Item) Robust Depth Streams Cross region replication DynamoDb local Free text Search Titan graph database integration Atomic Counters -
AWS Lambda Run code without servers. Pay only for the
compute time you consume. Triggered by events or called from APIs: PUT to an Amazon S3 bucket Updates to Amazon DynamoDB table Call to an Amazon API Gateway endpoint Mobile app backend call Makes it easy to: Perform real-time data processing Build scalable backend services Glue and choreograph systems -
Lets build the backend Create DynamoDB table Define Lambda role
to access the DB Create a Lambda function to be called from the Web Test against predefine request -
Amazon API Gateway Fully managed API endpoint service Publish, maintain,
monitor and secure your API Create RESTful Endpoints for Existing Services Run Your APIs Without Servers Performance at Any Scale Authenticate and authorize requests to your backend Easily Monitor API Activity Streamline API Development -
Lets build the API Publish, maintain, monitor and secure the
API Authorize the API with Cognito Build new Resource and method (/ride POST) DEPLOY the API -
We Are here for you… Our Architects And Consultants has
vast experience in : Demolish Monoliths Building Serverless Architecture on AWS PaaS and IaaS project on the cloud Reactive systems on open source technologies with variety of tech-stack and languages Streaming processing and Big Data Projects Docker Kubernetes and Service Mesh (Istio/OpenShift) -
Opal Use Case Serverless Architecture to detect and analyze data
sources with Image Recognition and NLP Service. S3 File Upload triggers lambda function and AWS Batch Data Analytics are done using AKS Rekognition and AWS Comprehend Results are written to DynamoDB and queried back to Web Service -
Resources & Contacts Serverless Web Application Code : https://github.com/aws-samples/aws-serverless- workshops/tree/master/WebApplication
Source code for the static web site : s3://wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website Serverless Image Processing workshop https://github.com/aws-samples/aws-serverless- workshops/tree/master/ImageProcessing Sela Group Consulting & Professional Services: [email protected] , [email protected] , @ofirMakmal , @selaHQ