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

Déployer une architecture serverless active act...

Déployer une architecture serverless active active multi region en 25 min

Nous vivons dans un environnement où la vitesse est critique et les pannes sont inévitables, tout finira par échouer avec le temps.
Comment alors concilier disponibilité et rapidité pour le plus grand bien de vos clients ? En architecturant des systèmes hautement fiables et disponibles. Durant cette session, je vous guiderai à travers l'architecture, la construction et le déploiement d'une architecture serverless à grande échelle, multirégionale, active-active.

More Decks by Sébastien Stormacq - AWS Developer Advocate

Other Decks in Technology

Transcript

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

    rights reserved. P A R I S Déployer une architecture serverless active active multi region Guillaume Marchand Solutions Architect AWS France C l o u d E x p o 2 0 1 9
  2. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Once upon a time … Origin
  3. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. And now . . . Origin ~300ms
  4. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Origin Improve latency for end users Origin
  5. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Failures are a given and everything will eventually fail over time.” Werner Vogels - Amazon CTO
  6. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Improve availability and disaster recovery Applications in EU West Applications in US East Users from Paris Users from New York Service 1 Service 2 Service 3 Service 4 Service 1 Service 2 Service 3 Service 4
  7. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon global network
  8. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon S3 cross-region replication Bucket with objects Bucket with objects
  9. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Build high performance, globally distributed applications Low latency reads & writes to locally available tables Disaster proof with multi-region redundancy Easy to set up and no application rewrites required Globally dispersed users Replica (N. America) Replica (Europe) Replica (Asia) Global App Global Table Amazon DynamoDB Global Tables Fully managed, multi-master, multi-region database
  10. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Aurora Global Database MySQL and PostgreSQL-compatible relational database with cross region replication M R R REGION 1 AZ 1 AZ 2 AZ 3 SHARED STORAGE R REGION 2 AZ 1 AZ 2 AZ 3 SHARED STORAGE REPLICATION FLEET REPLICATION FLEET High throughput: Up to 200K writes/sec – negligible performance impact Low replica lag: < 1 sec cross-country replica lag under heavy load Fast recovery: < 1 min to accept full read-write workloads after region failure
  11. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Serverless cost model is a huge advantage here!
  12. © 2019, Amazon Web Services, Inc. or its affiliates. All

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

    rights reserved. AWS Lambda Amazon DynamoDB Amazon API Gateway Amazon Route 53
  14. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Global Table https://global.amzgma.me AWS Lambda AWS Lambda Amazon DynamoDB Amazon DynamoDB Amazon API Gateway Amazon API Gateway Amazon Route 53 Region Region eu-west-1 (Ireland) Region Region us-east-2 (Ohio) AWS Lambda Amazon DynamoDB Amazon API Gateway Region Region ap-southeast-1 (Singapour)
  15. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Multi-region with Route 53 Amazon Route 53
  16. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Latency-based routing Application Application Amazon Route 53 Region Region
  17. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Geo-based routing Application Application Amazon Route 53 Region Region
  18. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Weighted round robin routing Application Application Amazon Route 53 Region Region
  19. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. DNS failover Application Application Region Region Amazon Route 53
  20. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Route53: Traffic policy
  21. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Global Table https://global.amzgma.me AWS Lambda AWS Lambda Amazon DynamoDB Amazon DynamoDB Amazon API Gateway Amazon API Gateway Amazon Route 53 Region Region eu-west-1 (Ireland) Region Region us-east-2 (Ohio) AWS Lambda Amazon DynamoDB Amazon API Gateway Region Region ap-southeast-1 (Singapour) Voila !
  22. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS Global Accelerator
  23. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. https://medium.com/@adhorn
  24. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. ARC213 Architecture patterns for multi-region active-active NET311 Traffic management for multi-region architectures SVS337 Best practices for building multi-region, active-active serverless applications NET205 Getting started with Global Accelerator NET318 Building highly available applications using Global Accelerator
  25. Thank you! © 2019, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. @gmarchand