AWS Innovate Q4T7S4
AWS Innovate Q4T7S4
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SUP203T7S4
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build Measure
Learn
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
So let’s start from
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >1
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Day 1 the old way – Single instance
2. Backend
3. Database Elastic IP
address
Instance
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What’s changed?
This old way of starting host-based has grown out of favor due
mostly to the popularity of frontend framework technology:
• Node.js React, jQuery, Angular, and Vue.js round out top web frameworks
and technologies in the Stack Overflow Developer Survey 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What’s the impact?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users >1: With modern frontend
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amplify Hosting
FEATURES FOR HOSTING MODERN WEB APPLICATIONS
Feature
Atomic deployments Password protection
branch deployments
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What about the
backend?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Evaluating compute options
• No failover
• No redundancy VPC
Elastic IP
• Can’t scale individual components independently address
individual components
AWS’s guidance: make use of managed compute for Instance
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Evaluating managed compute on AWS
More opinionated
AWS manages Customer manages
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exposing business logic to the frontend
THREE OPTIONS FOR EXPOSING AN API
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS App Runner
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users >1: with modern frontend and backend
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
To NoSQL, or not to NoSQL?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Start with SQL databases
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why start with SQL?
• Established and well-known technology
• Lots of existing code, communities, books, and tools
• You aren’t going to break SQL databases with your first millions of users.
No, really, you won’t.*
• Clear patterns to scalability
*Unless you are doing something super peculiar with the data or you have massive
amounts of it, but even then SQL will have a place in your stack
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora
Relational databases built for the cloud – performance and availability of commercial
databases at 1/10th the cost
Performance Availability
Highly secure Fully managed
and scalability and durability
Several times faster than Fault-tolerant self-healing storage Network isolation Managed by Amazon RDS:
standard MySQL and no hardware provisioning,
6 copies of data across 3 AZs Encryption at rest/transit
PostgreSQL software patching, setup,
15 read replicas Single global database with configuration, or backups
cross-Region replication
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users >1:
• No self-managed infrastructure
• Built in scalability
AWS Amplify Hosting App Runner
• Built in high availability
VPC
• Layers of security and access controls
• Aligned costs to value
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >100
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >1000
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >10,000
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
y b e ?
m a
Users: >10,000
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >10,000. What starts to go wrong?
other parts
• Slowing queries in the database due to
large table sizes/index growth Amazon Aurora
Serverless v2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s dive into the frontend tier
Amazon Route 53
Frontend Backend
AWS Amplify Hosting App Runner
VPC
Data storage
Amazon Aurora
Serverless v2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scaling the frontend
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s dive into the data tier
Amazon Route 53
Frontend Backend
AWS Amplify Hosting App Runner
VPC
Database
Amazon Aurora
Serverless v2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless v2: scaling
Compute fleet
Scales in place in under a second by adding more CPU
and memory resources
No impact due to scaling even when running hundreds
of thousands of transactions
Compute fleet continuously monitored and scaled
horizontally for heat management
Up to 15x faster scale downs compared to v1 Automatically grows
Storage fleet
Automatically grows
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless v2: scaling
Up to 15 read replicas act as failover targets Availability Availability Availability
All instances inherit capacity configuration from the Zone 1 Zone 2 Zone 3
cluster
Tier 0 and 1 read replicas match the size of the
primary instance
Tier 0 Tier 1
Tier 14 Tier 15
Deploy across separate AZs Writer Reader
Reader Reader
Cluster volume
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS Proxy
A FULLY MANAGED, HIGHLY AVAILABLE DATABASE PROXY FOR AMAZON RDS AND AMAZON AURORA
Pool and share DB Increase app Manage app data Fully managed DB
connections for availability and reduce security with DB proxy, compatible with
improved app scaling DB failover times access controls your database
Amazon RDS Proxy supports Aurora Serverless v2, including mixed configurations
with Aurora provisioned and serverless instances within a cluster
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The best database queries are the
ones you never need to make (often).
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon ElastiCache
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scaling the data tier
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s dive into the backend tier
Amazon Route 53
Frontend Backend
AWS Amplify Hosting App Runner
VPC
Data storage
Amazon Aurora
Serverless v2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
App Runner: Under the hood
HTTP
request L7 Request
Router
Clients Internet
Internet facing
NLB
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
App Runner: scaling instance sizes
possible
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >100,000
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >1,000,000
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >1,000,000
needs
read replica
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Going the microservices route
Moving to a service-oriented or microservices based architecture
is a refactor that requires deep planning across all layers.
• Start with with the easiest to cut away features/capabilities
that don’t involve too many cross-function ties
• Data domain mapping
• Business function mapping
• Good time to evaluate other compute technologies for
specific needs
• Will need to think about how to “glue” everything together
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database federation
VPC
Products database
• Often the result of misaligned workloads to the
technology. E.g., Data warehouse workloads on Amazon Aurora
RDBMSes
Serverless v2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shifting functionality to NoSQL
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Breaking up the backend tier
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
10 million+ users
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Users: >10 million
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
To infinity . . .
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Zac Burns (He/Him)
Startup Solutions Architect,
Amazon Web Services
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete
the session survey
© 2021,
2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.