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

How web site can go serverless?

How web site can go serverless?

How web site can go serverless? If you still running servers for website backend, come and see how you can remove server operations from your tasks list and focus on developing the best code and product. In this session, we will take a common website architecture and show how can we use AWS Lambda, to build smarter and better systems.
Reduce your data centers carbon emissions using the cloud If the Internet was a country, it would be the 3rd largest consumer of electricity in the world, behind China and the United States. In total, the digital consumes almost 15% of the world's electricity, the equivalent of 100 nuclear reactors. And this consumption doubles every 4 years. In terms of CO2 emissions, the Internet pollutes 1.5 times more than air transportation. Half of the greenhouse gases produced by the internet come from the user, the other half being divided between the network and the data centers. The climate impact of the data centers accounts for 4% of global electricity consumption and this figure is increasing rapidly. Only one data center consumes as much electricity as 30,000 European citizens. In 2016, we counted 182 data centers on the French territory that represented the electricity consumption of almost 5.5M French citizens. This talk will explain how companies can reduce their data centers carbon emissions up to 88% by moving to AWS cloud. Not only AWS Cloud is good for the business, it is also good for the planet!
Startup pitches : 6 startups
How to build multi region application in the cloud? Customers are often looking at running their services at global scale, deploying their backend in multiple regions. This hands-on talk will walk you through understanding why and how customers are building and deploying multi-region architecture. I will then walk you through deploying a multi-region, active-active serverless backend leveraging Amazon Route 53 to route the traffic between regions, API Gateway and AWS Lambda for the backend and DynamoDB Global tables for multi-region, multi-master for handling the data storage at global scale.

Demo and hands-on code guaranteed! deploying a multi-region, active-active serverless backend leveraging Amazon Route 53 to route the traffic between regions, API Gateway and AWS Lambda for the backend and DynamoDB Global tables for multi-region, multi-master for handling the data storage at global scale.
What Works: How the best entrepreneurs are building their startups. What Works: From technical tools, to cost-saving hacks, and leadership routines, what the best entrepreneurs are using (an*d doing) to build their startups.*

How to disrupt a traditional market ? Thanks to a unique and home-made technology, PayFit revolutionizes and simplifies payroll and HR processes for companies since its launch in 2016. Inès Salhi will explain how we disrupted the traditional payroll marketplace with our own programming language.
Simplify your web and mobile apps with serverless backend in the cloud. Designing, deploying and maintaining backend services for your web or mobile application is a challenge. Think about authentication, authorization, data access, notifications, offline devices and the usual non functional requirements of availability, scalability and … shrinking budgets !
During this session, I will show you how to deploy cloud based services, without requiring to be a cloud expert. I will show you how to easily integrate an authentication wall, with minimal coding, how to deploy an API layer and how to publish your web app without using a single server. By attending this session you will be able to accelerate the development of your web & mobile applications by using simplified backends in the cloud.

More Decks by Sébastien Stormacq - AWS Developer Advocate

Other Decks in Programming

Transcript

  1. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Sébastien Stormacq Technical Evangelist Amazon Web Service How Websites go Serverless? @sebsto sebsto
  2. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential What is Serverless? Build and run applications without thinking about servers
  3. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Evolving to Serverless SERVERLESS Virtual servers in the cloud Physical servers in datacenters Virtual servers in datacenters
  4. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential No server is easier to manage than any server All of these responsibilities go away Provisioning and utilization Availability and fault tolerance Scaling Operations and management
  5. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential What is serverless? No infrastructure provisioning, no management Automatic scaling Pay for value Highly available and secure
  6. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Serverless applications FUNCTION SERVICES (ANYTHING) Changes in data state Requests to endpoints Changes in resource state Node Python Java C# .Net Core 2.0 Go Ruby EVENT SOURCE
  7. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Websites architecture
  8. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Three-tier web application architecture https://d0.awsstatic.com/whitepapers/AWS_Serverless_Multi-Tier_Architectures.pdf Presentation Tier Logic Tier Data Tier Website Web Server Database
  9. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Here is what that translates to in real life http://media.amazonwebservices.com/architecturecenter/AWS_ac_ra_web_01.pdf
  10. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Serverless Website?
  11. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Web application Data stored in Amazon DynamoDB Dynamic content from AWS Lambda
  12. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Serverless web app security Permissions Bucket Policies ACLs Role Role Throttling Caching Usage Plans ACM Origin Access Identity (OAI) Geo-Restriction Signed Cookies Signed URLs DDOS Protection
  13. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Custom Authorizers Lambda Function Lambda Function Custom Authorizer Cognito User Pool SAML Custom Authorizer Lambda function Two types: TOKEN - authorization token passed in a header REQUEST – all headers, query strings, paths, stage variables or context variables.
  14. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Multi-Region with API Gateway AWS Cloud Regional API Endpoint us-east-1 Regional API Endpoint eu-west-1 api.mycorp.com CNAME CNAME
  15. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential WebSockets support in Amazon API Gateway Real-time two-way communications Managed persistence Event-based triggers Mobile apps Chat Dashboards IoT devices Amazon API Gateway WebSockets API Stateful connection Stateless connection Lambda Functions Public Endpoints on Amazon EC2 Amazon Kinesis Any other AWS service All publicly accessible endpoints
  16. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential http://bit.ly/ServerlessShop https://github.com/patrick-michelberger/serverless-shop
  17. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Demo - http://notes.stormacq.com
  18. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Serverless Website - demo JavaScript SDK Amazon API Gateway Amazon DynamoDB Static Files on S3 Amazon Cognito User Pool Amazon CloudFront
  19. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Too complicated?
  20. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential What is AWS Amplify? Open Source Developer Toolchain Command Line Interface (CLI) Client Framework UI Components Amplify Console
  21. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential AWS Amplify Toolchain Categories Authentication Analytics API Storage Interactions
  22. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential The AWS Amplify UI Components
  23. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Getting Started – React Login in 5 min
  24. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Download and set up Amplify CLI $ npm install -g @aws-amplify/cli $ amplify configure
  25. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Bootstrap your preferred frontend setup, then … $ npm create react-app amplify-react-demo $ cd amplify-react-demo $ amplify init
  26. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Add hosting (Production – S3 + CloudFront) $ amplify add hosting $ amplify publish $ amplify status Current Environment: prod | Category | Resource name | Operation | Provider plugin | | -------- | --------------- | --------- | ----------------- | | Hosting | S3AndCloudFront | No Change | awscloudformation | Hosting endpoint: https://d3i8d3iva3uhzp.cloudfront.net
  27. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Add Amplify library to my App $ npm install aws-amplify $ npm install aws-amplify-react
  28. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Add Authentication with Amazon Cognito $ amplify add auth $ amplify status Current Environment: prod | Category | Resource name | Operation | Provider plugin | | -------- | --------------- | --------- | ----------------- | | Auth | cognito65bfc0c5 | Create | awscloudformation | | Hosting | S3AndCloudFront | No Change | awscloudformation |
  29. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css’; class App extends Component { render() { return ( <div className="App"> … … </div> ); } } export default App;
  30. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Amplify from 'aws-amplify’; import awsmobile from './aws-exports'; import { withAuthenticator } from 'aws-amplify-react'; Amplify.configure(awsmobile); class App extends Component { render() { return ( <div className="App"> … … </div> ); } } export default App;
  31. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential AWS Amplify Console
  32. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential AWS Amplify Console
  33. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Where to start? https://aws.amazon.com/serverless/ https://aws.amazon.com/lambda/ https://aws-amplify.github.io/ https://aws-amplify.github.io/docs/js/react https://github.com/ziniman
  34. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Today (Friday 17th) 10:30 AI & Machine Learning at Amazon 13:40 How web sites goes serverless? 15:40 How to build multi region application in the cloud? 17:20 Simplify your web and mobile apps with serverless backend in the cloud.
  35. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Tomorrow (Saturday 18th) 10:30 Une introduction à AWS pour les développeurs 13:40 Utilisez des services d'intelligence artificielle dans vos applications sans être expert en apprentissage machine. 15:30 Hébergez votre site web sur AWS, en serverless et avec intégration continue.
  36. © 2019, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Confidential Sébastien Stormacq Technical Evangelist Amazon Web Service @sebsto sebsto Thank you !