Cruise to Cloud Native: Chapter 2 Improving your toolset. Profiting from containers and serverless functions

Hahnara Hyun Solutions Architect at AWS Daniel Maher Technical Evangelist at Datadog @phrawzty Ara Pulido Technical Evangelist at Datadog @arapulido

Cruise to Cloud Native in 3 episodes Episode 1: From bare-metal to AWS (7 May) Episode 2: Getting more from advanced services (Today!) Episode 3: Bringing your company onboard! (8 June)

Traditional three-tier application architecture Web servers Presentation layers Application servers Business logic Database servers Data layer © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 4

How can we innovate faster? © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 5

What do our customers want in a modern application? Reliability Flexibility Security and isolation by design © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 6

Traditional three-tier application architecture Web servers Presentation layers Application servers Business logic Database servers Data layer © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 7

Modern application architecture Presentation Events Events Business logic APIs Queues/messages Data © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 8

Let’s zoom out APIs APIs APIs APIs APIs © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 9

Deployment: Monolith development lifecycle developers services delivery pipelines build test release monitor © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 10

Deployment: Microservice development lifecycle developers services delivery pipelines build test release monitor build test release monitor build test release monitor build test release monitor build test release monitor build test release monitor © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 11

Modern application architecture Presentation Events Events Business logic APIs Queues/messages Data © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 12

Compute and Operations More AWS Lambda Serverless functions AWS manages Customer manages Data source integrations Application code Physical hardware, software, networking, and facilities Provisioning Application code Opinionated Container orchestration, provisioning AWS Fargate Cluster scaling Data source integrations Serverless containers Physical hardware, host OS/kernel, networking, and facilities Security config and updates Network config Management tasks Application code Amazon ECS/EKS Container-management -as-a-service Container orchestration control plane Physical hardware software, networking, and facilities Data source integrations Work clusters Security config and updates, network config, firewall, management tasks Application code Amazon EC2 Physical hardware software, networking, and facilities Infrastructure-as-a-Service Les s © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Data source integrations Scaling Security config and updates Network config Management tasks Provisioning, managing scaling and patching of servers 13

Lego uses an event-driven design Login Customer login Commerce platform Order & customer updates Event relay Shipping Customer login Invoke every minute Events Order complete Amazon EventBridge Data sync Customer, VIP, wishlist sync Customer login FIFO queue Payment Payment authorized Checkout Submit order Send order to SAP Authorize payment Order Order submit Order complete Process order © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 14

Purpose-built databases at AWS Relational Aurora RD S Key value Document In-memory Graph Time series Ledger Wide column DynamoDB DocumentDB ElastiCache Neptune Timestream QLDB Managed Cassandra © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 15

Risk of introducing changes …may result in unavailability, reduced performance, adoption Applications Environmen t Features © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 16

Monitor for reliable service health during re-platforming © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 17

Observability

Review from ep1: Observability

Four Golden Signals

Four Golden Signals Latency Traffic Errors Saturation

Four Golden Signals: Latency ● Direct impact on customer experience. ● Where and how you measure is key.

Four Golden Signals: Traffic ● The amount of work being done—or attempted. ● Direct relationship to business value.

Four Golden Signals: Errors ● A nice, defined target to aim at. ● Direct impact on customer experience.

Four Golden Signals: Saturation ● Honestly, this is a tricky one. :) ● Direct relationship to both scaling and capacity planning.

Traces and APM

S4 S1 S2 S3 S5

TRACE S1 S2 S3 SPANS S4 S5

Demo