© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
10/11/2021
Modernize Your Applications using
RDS for PostgreSQL, Amazon MemoryDB,
and Containers
Krishna Sarabu
Sr. PostgreSQL Specialist SA
Vijay Injam
Sr. ElasiCahe Specialist SA
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
• Characteristics of Modern Applications
• Monolith to Microservices
• Microservices Architecture
• Components
• Features
• Scalability
• Performance
• Agility
• Demo
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Characteristics of Modern
Applications
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Modern application requirements
Requires more performance, scale, and availability
Users 1M+
Data volume Terabytes—petabytes
Locality Global
Performance Microsecond latency
Request rate Millions per second
Access Mobile, IoT, devices
Scale Virtually unlimited
Economics Pay as you go
Developer access Instance API access
Development Apps and storage are
decoupled
Online
gaming
Social
media
Media
streaming
E-commerce Shared economy
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monolith to Microservices
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
App architectures & patterns have evolved
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monolith
Monolith
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Traditional Three-Tier Architecture
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Limitations of Monolith Approach
Hard to Scale Can’t Handle
Component
Failures
Limited
options
Slow
Deployment
Process
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Concepts - Microservices
Completely
independent
Microservices
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reference Level Architectural Components
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build a modern Retail website
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build a modern Retail website
c
Register Product Order
Product Service
(Microservice -3)
Cart Service
(Microservice -4)
Order Service
(Microservice -5)
User Service
(Microservice -2)
Cart
UI Service
(Microservice -1)
Fraud Service
(Microservice -7)
Alerting and monitoring Service
(Microservice -6)
c
c
Retail Website
Operational
Business Logic
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architectural Components for retail website
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Services for Microservices
Architecture
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EKS
• Kubernetes is an open source container orchestration
• Enables you to run containers at scale
• An API driven tool that reconciles the state of the cluster against
declarative state
• Data Plane (EC2, Managed Node Groups, and Fargate)
• Load Balancing (CLB/NLB Service Load Balancer and ALB Ingress
Controller)
• Storage (EBS and EFS CSI Drivers)
• Autoscaling (Cluster Autoscaler, Horizontal Pod Autoscaler, and Vertical
Pod Autoscaler)
• CI/CD
• Managing Clusters at Scale with GitOps
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MemoryDB
• Durable In-memory database service
• Purpose-built for modern applications with microservices
architectures
• Multi-key atomic operations
• Redis open source API
• Supports data structures like :
Strings, Lists, Sets, Sorted Sets, Hash Tables,
HyperLogLog, Geospatial, and Streams
• Supports Multi-AZ in a region
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS PostgreSQL
• Fully Managed service
• Open Source PostgreSQL compatibility
• Supported extensions like:
• PostGIS, Hstore, pglogical, etc.
• Scale compute and storage with ease
• High Availability and Durability
• Highly Secure
• KMS (Encrypt at rest, Encrypt in transit)
• IAM
• Kerberos
• Native JSON, Native Arrays support
• Read Replicas for read intensive workload horizontal scaling
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EKS Scaling
• Scale Cluster with Cluster AutoScaler
• Scale Applications with Horizontal Pod AutoScaler
• Scale Applications with Vertical Pod AutoScaler
• Supports Elastic Load Balancing including including CLB, ALB and NLB
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MemoryDB - Scaling
Feature Cluster
Node Scale Up to 500 nodes, 1 primary and 0–5 replicas per shard
Storage 100TB
Online Scaling Shards, primary nodes and read replicas
Scaling Operation
Cluster Resizing (zero-downtime)
• Horizontal Scaling to add/remove shards
• Read Scalability to add/remove replicas
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
RDS PostgreSQL Scaling
• Push button, RDS API for scale compute and memory resources.
• Storage Autoscaling
• Provision additional storage on-the-fly with zero downtime
• Scale the throughput by specifying the IOPS rate
• 1,000 IOPS to 80,000 IOPS in 1,000 IOPS increments and storage from 100 GB and 64TB.
• Read Replicas for read intensive workloads with Horizontal Scaling
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Performance
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MemoryDB – Performance
Latency: Extremely low, microsecond to millisecond responses
Request Rate: Thousands to millions of reads and/or writes
per second
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agility
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EKS - Agility
• Easier to automate and scale container-based workloads for live
production environments.
• Reconciles the state of the object against declarative state.
• CI/CD integration for quick build, test and deployment.
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo Architecture
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Q&A
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

2021_1006-DAT_Slide-Deck.pdf

  • 1.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. 10/11/2021 Modernize Your Applications using RDS for PostgreSQL, Amazon MemoryDB, and Containers Krishna Sarabu Sr. PostgreSQL Specialist SA Vijay Injam Sr. ElasiCahe Specialist SA
  • 2.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Agenda • Characteristics of Modern Applications • Monolith to Microservices • Microservices Architecture • Components • Features • Scalability • Performance • Agility • Demo
  • 3.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Characteristics of Modern Applications
  • 4.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Modern application requirements Requires more performance, scale, and availability Users 1M+ Data volume Terabytes—petabytes Locality Global Performance Microsecond latency Request rate Millions per second Access Mobile, IoT, devices Scale Virtually unlimited Economics Pay as you go Developer access Instance API access Development Apps and storage are decoupled Online gaming Social media Media streaming E-commerce Shared economy
  • 5.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Monolith to Microservices
  • 6.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. App architectures & patterns have evolved
  • 7.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Monolith Monolith
  • 8.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Traditional Three-Tier Architecture
  • 9.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Limitations of Monolith Approach Hard to Scale Can’t Handle Component Failures Limited options Slow Deployment Process
  • 10.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Concepts - Microservices Completely independent Microservices
  • 11.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Reference Level Architectural Components
  • 12.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Build a modern Retail website
  • 13.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Build a modern Retail website c Register Product Order Product Service (Microservice -3) Cart Service (Microservice -4) Order Service (Microservice -5) User Service (Microservice -2) Cart UI Service (Microservice -1) Fraud Service (Microservice -7) Alerting and monitoring Service (Microservice -6) c c Retail Website Operational Business Logic
  • 14.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Architectural Components for retail website
  • 15.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Services for Microservices Architecture
  • 16.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon EKS • Kubernetes is an open source container orchestration • Enables you to run containers at scale • An API driven tool that reconciles the state of the cluster against declarative state • Data Plane (EC2, Managed Node Groups, and Fargate) • Load Balancing (CLB/NLB Service Load Balancer and ALB Ingress Controller) • Storage (EBS and EFS CSI Drivers) • Autoscaling (Cluster Autoscaler, Horizontal Pod Autoscaler, and Vertical Pod Autoscaler) • CI/CD • Managing Clusters at Scale with GitOps
  • 17.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. MemoryDB • Durable In-memory database service • Purpose-built for modern applications with microservices architectures • Multi-key atomic operations • Redis open source API • Supports data structures like : Strings, Lists, Sets, Sorted Sets, Hash Tables, HyperLogLog, Geospatial, and Streams • Supports Multi-AZ in a region
  • 18.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon RDS PostgreSQL • Fully Managed service • Open Source PostgreSQL compatibility • Supported extensions like: • PostGIS, Hstore, pglogical, etc. • Scale compute and storage with ease • High Availability and Durability • Highly Secure • KMS (Encrypt at rest, Encrypt in transit) • IAM • Kerberos • Native JSON, Native Arrays support • Read Replicas for read intensive workload horizontal scaling
  • 19.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scaling
  • 20.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. EKS Scaling • Scale Cluster with Cluster AutoScaler • Scale Applications with Horizontal Pod AutoScaler • Scale Applications with Vertical Pod AutoScaler • Supports Elastic Load Balancing including including CLB, ALB and NLB
  • 21.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. MemoryDB - Scaling Feature Cluster Node Scale Up to 500 nodes, 1 primary and 0–5 replicas per shard Storage 100TB Online Scaling Shards, primary nodes and read replicas Scaling Operation Cluster Resizing (zero-downtime) • Horizontal Scaling to add/remove shards • Read Scalability to add/remove replicas
  • 22.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. RDS PostgreSQL Scaling • Push button, RDS API for scale compute and memory resources. • Storage Autoscaling • Provision additional storage on-the-fly with zero downtime • Scale the throughput by specifying the IOPS rate • 1,000 IOPS to 80,000 IOPS in 1,000 IOPS increments and storage from 100 GB and 64TB. • Read Replicas for read intensive workloads with Horizontal Scaling
  • 23.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Performance
  • 24.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. MemoryDB – Performance Latency: Extremely low, microsecond to millisecond responses Request Rate: Thousands to millions of reads and/or writes per second
  • 25.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agility
  • 26.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. EKS - Agility • Easier to automate and scale container-based workloads for live production environments. • Reconciles the state of the object against declarative state. • CI/CD integration for quick build, test and deployment.
  • 27.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demo
  • 28.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Demo Architecture
  • 29.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Q&A
  • 30.
    © 2021, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Thank you!