Modernizing Database
Modernizing Database
AWS
Purpose-built databases,
The right tool for the right job
Aditya Pradana
Senior Solutions Architect
AWS WWPS Indonesia
© 2023, Amazon Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates.
AWS Speaker Profile
Summary
Aditya is a Solutions Architect in AWS Public Sector for Indonesia Region. Prior to AWS,
Aditya worked on Data Science & Analytics field in various companies both in Singapore &
Indonesia. His most recent work was in a payment gateway startup as a Data scientist
supporting both internal & external clients in creating analytics insights, recommendation,
and fraud detection ML model.
Professional CV
- Amazon Web Services (ID, 2020 – Present) – Sr. Solutions Architect
- Xendit (SG/ID, 2018 - 2020) - Data Scientist / Software Engineer
- ANZ Bank (SG, 2017 - 2018) – Data Analyst
- Hewlett Packard (SG, 2015 – 2017): Data Analytics Engineer
Education
- National University of Singapore - B. Engineering (Electrical)
Certifications
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Table of Contents
Modern application
Dev Ops
Query construction
Query construction You
Schema design Query optimization
Automatic fail-over
Relational Non-relational
databases databases
https://www.youtube.com/watch?v=esKEpm3T3NI
© 2023, Amazon Web Services, Inc. or its affiliates.
Sekolah.mu serves more than 2.5 million users with a 6
member team by building on AWS
Challenge Solution Benefits
Sekolah.mu is the first blended To scale and serve their users, Sekolah.mu • Reached 12 million page
learning system in Indonesia that began building on AWS in November 2019, views within a day in 2020.
offers learning programs for utilizing AWS Fargate as their orchestration
everyone. They have a mission to layer. When combined with Amazon Elastic • Attained results with a lean
ensure that all Indonesian children Compute Cloud (Amazon EC2), Amazon Simple team of 6 employees, with 1
succeed in key competencies and Storage Service (Amazon S3), Amazon person focusing on managing Customer: Sekolah.mu (PT Sekolah
future achievements by providing CloudFront, Amazon Relational Database Service the AWS architecture and 5
quality educational services with a (Amazon RDS), Application Load Balancer,
Integrasi Digital)
team members focusing on
personalized and flexible Amazon ElasticSearch, and Amazon ElastiCache, backend development. Industry: Education Technology
curriculum. it helped them to create a robust platform in
Indonesia, whilst managed by a small number of • Improved speed of product
Country: Indonesia
However, it is difficult to achieve resources. delivery by leveraging new Website: https://www.sekolah.mu/
that goal in Indonesia without technologies on AWS.
leveraging technology. In addition, Within a year, they successfully scaled their
hiring a quality technology team is a product to serve more than 2.5 million users, • Developed video on-demand
challenge for a new startup in helping them improve their education in big feature by utilizing AWS About Sekolah.mu
Indonesia. cities and also the rural areas in Indonesia. Lambda, S3, and CloudFront.
Sekolah.mu is a curated education platform
founded in 2019. Sekolah.mu provides a
variety of accredited learning programs from
“
early childhood to secondary schools, and
teacher and other professional development.
Sekolah.mu chose AWS who has a strong foundation in cloud-native
Collaborating with established schools,
infrastructure. In 2021, we are ready to improve our engineering, vocational institutions, and industry players,
architecture, and infrastructure to cater to 10x higher of our current all programs in Sekolah.mu is a blend of
”
target users, to provide more accessibility of quality education to online and offline experiences that are
students, parents, and teachers in Indonesia. designed to scale quality learning to each and
every learner.
Rhezandra Priatama, Chief Technology Officer, Sekolah.mu
© 2023, Amazon Web Services, Inc. or its affiliates.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bali Provincial Government creates remote attendance
platform for 11,000 employees with AWS
Challenge Solution Benefits
Due to the COVID-19 pandemic, The Bali Provincial Government implemented a mobile • Quick sign on process for employees.
many Bali Provincial Government application for their employee attendance system, Absensi
employees and teachers were Pegawai Pemprov Bali, with Amazon Web Services (AWS). • Tracking attendance and performance
unable to visit the office and had The mobile application handles 11,000 employees across rates allows the Bali Provisional
to work from home or 247 offices and schools to achieve real-time attendance Government to determine days off
alternative locations. daily. and work schedules, including shift Customer: Bali Provincial Government
arrangements.
The Bali Provincial Government Amazon Simple Email Service (Amazon SES) was (Dinas Kominfos Bali)
needed an attendance system to synchronized with their single sign on (SSO) system to • Improves identity protection and
easily monitor their employees’ facilitate login and verification of users. Data collected reduces security risks for private data. Industry: Government
attendance and performance. within the application is stored securely on Amazon
The organization also needed to DynamoDB. The Bali Provincial Government also used • Achieved 69% cost savings and
track these absences in relation Amazon Rekognition to allow employees to clock their efficiency per month by lowering Country: Indonesia
to the proximity of employees’ attendance. As the application runs on Amazon Elastic physical operations costs.
locations. Compute Cloud (Amazon EC2), the system runs smoothly
even in peak hours with Amazon EC2 Auto Scaling. Website: http://baliprov.go.id/
About Bali Provincial Government
“
known for its tourism industry. Bali has
eight regencies and one city called
Denpasar as the provincial capital. Bali
Being exposed to new technology like AWS services pushed us Provincial Government through its vision
to enhance our knowledge, especially in allocating resources namely “Nangun Sat Kerthi Loka Bali”
”
efficiently. This milestone is important to us in realizing Bali as concerns maintaining the sanctity and
harmony of Balinese nature and its
a smart island. contents about technology development
to make Bali a smart island in Indonesia.
Ngurah Udiyana, IT Head of Informatics Application, Communication, Informatics and Statistic
Department, Bali Provincial Government (Dinas Kominfos Bali)
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why consider purpose-built databases
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
101
Database(s)
Web Pages, Images, Server Side Scripts,
Pictures, Documents, Template Pages, Codes,
Client Side Scripts Formulas, Libraries
© 2023, Amazon Web Services, Inc. or its affiliates.
Relational data
Patient
* Patient ID
First Name
• Divide data among tables Last Name
First Name
Last Name
Medical Specialty Medical Treatment
* Hospital Affiliation * Treatment ID
Procedure
How Performed
Hospital Adverse Outcome
* Hospital ID
Contraindication
Name
Address
Rating
PostgreSQL
Easy to administer Performant & scalable Available & durable Secure and compliant
Easily deploy and maintain Scale compute Automatic Multi-AZ data Data encryption at rest and
hardware, OS and DB and storage with a few replication; automated in transit; industry
software; built-in monitoring clicks; minimal downtime for backup, snapshots, and compliance and assurance
your application failover programs
Application Database
servers failure Standby
Fault tolerance across
multiple data centers
• Automatic failover
New standby
• Synchronous replication Availability Zone A
• Enabled with one click
Primary
Availability Zone B
• CPU/ Memory / IOPS / • Process / Thread list • SQL / State / User / Host
Network • Per second metric storage (“Database Load”)
• Per minute metric storage in Amazon CloudWatch • Per second metric storage in
in Amazon CloudWatch Logs Amazon RDS
up to 128 TB
Rewind
t0 t1
to t3
Rewind to t1
t0 t1 t2 t3 t4
Backtrack brings the database to a point in time without requiring restore from
backups
• Backtracking from an unintentional DML or DDL operation
•
E-commerce Backtrack is not destructive. You can backtrack multiple times to find the right point in
time
© 2023, Amazon Web Services, Inc. or its affiliates. 47
Aurora Serverless
On-demand, auto-scaling database for applications with variable
workloads
Application
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
• Consistent GET {
TableName:"Gamers",
performance at Key: {
scale
"GamerTag":"Hammer57“,
“ProjectionExpression“:”Points”
} }
Hash(1) = 7B
CustomerOrdersTable
Even faster—
DAX microsecond latency
Scales to millions of
requests per second
Amazon Amazon
DynamoDB RDS
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
Millions of requests per second, Same code, drivers, and tools Simple and
millisecond latency you use with MongoDB fully managed
Writes
Reads
Reads
Reads
Distributed storage volume
Storage
AZ 1 AZ 2 AZ 3
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
• Recommendations
• Knowledge graphs
• Fraud detection
• Life sciences
KNOWS
PURCHASED
FOLLOWS
SPORT
FOLLOWS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Purpose-built Databases
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
95
94
Humidity
93
92
91.0
93.0
91 % WATER VAPOR
90
89
88
87
86
85
5:28:15 PM 5:28:30 PM 5:28:45 PM 5:29:05 PM
Collect data at the rate of Adaptive query processing Built-in functions for Automated setup,
millions of inserts per engine maintains steady, interpolation, smoothing, configuration, server
second (10M/second) predictable performance and approximation provisioning, software patching
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
Append-only, immutable All changes are Executes 2–3X as many Flexible document model,
journal tracks history of all cryptographically transactions as ledgers in query with familiar
changes that cannot be chained and verifiable common blockchain SQL-like interface
deleted or modified; get frameworks
full visibility into entire
data lineage
Aurora RDS DynamoDB DocumentDB ElastiCache MemoryDB Neptune Timestream QLDB Keyspaces
Keyspaces
Wide column
© 2023, Amazon Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates.