Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Wild Ride To Serverless Computing with AWS - ...

A Wild Ride To Serverless Computing with AWS - Tomer Shaiman

Avatar for Sela Developer Meetup

Sela Developer Meetup

December 12, 2018
Tweet

More Decks by Sela Developer Meetup

Other Decks in Technology

Transcript

  1. 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
  2. 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….
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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)
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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)
  16. 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
  17. 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