Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Moving from single tenant to multi tenant
Search
Pubudu
October 10, 2024
Technology
54
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Moving from single tenant to multi tenant
AWS Community Day NL - 2024
Pubudu
October 10, 2024
More Decks by Pubudu
See All by Pubudu
AWS Summit Amsterdam 2023 - SVS204
pubudusj
1
30
COM202 Dev Chat at re:Invent 2022
pubudusj
1
93
Manage webhooks at scale with AWS Serverless
pubudusj
0
66
Smart Doorbell with AWS Serverless - AWS UG Coimbatore
pubudusj
0
68
Smart Doorbell with AWS Serverless - Serverless Summit 21
pubudusj
0
100
Other Decks in Technology
See All in Technology
go-sqletch
moznion
0
140
AIカンパニーへの転換を支えた、エンジニアの仕事の再定義
kworkdev
PRO
2
1.2k
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
150
WasmをRustにする
sansantech
PRO
0
250
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
870
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
130
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
110
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
Featured
See All Featured
KATA
mclloyd
PRO
35
16k
Designing Experiences People Love
moore
143
24k
First, design no harm
axbom
PRO
2
1.3k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Design in an AI World
tapps
1
350
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
RailsConf 2023
tenderlove
30
1.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Transcript
Rearchitecting for scalability: Pubudu Jayawardana Moving a mission critical application
from single-tenant to multi-tenant Ryno Marree ACD302 AWS Community Day NL 2024
Agenda • What is single-tenancy and multi-tenancy • Use case:
at PostNL - Why migrate to multi-tenancy - Migration steps • Results 2
3 Pubudu Senior Solutions Software Engineer @ PostNL Ryno Senior
Solutions Software Engineer @ PostNL About Us
4 01 Single-tenancy & Multi-tenancy
5 Flexibility Control Cost-effectiveness Scalability SAAS Resource isolation
6 Single-tenancy vs Multi-tenancy
7 Single-tenancy
8 Single-tenancy • Enhanced security • High resilience • Customizability
• Compliance • Troubleshooting Pros
9 Single-tenancy • Higher costs • Scaling challenges • Maintenance
is hard • Longer deployment cycles Cons
10 Multi-tenancy
11 Multi-tenancy Pros Cons • Cost efficient • Scalability •
Easy to manage • Faster updates • Resource optimization • Security concerns • Compliance is complex • Limited customizations • Noisy neighbour issues
12 02 Use case
Mail items per day Parcels per day 1.1 million 6.9
million PostNL in figures - volume 13 End 2023
EBE – Event Broker E-Commerce 14
EBE – Event Broker E-Commerce 15 ✓ Self-service ✓ Helps
decoupling of other applications ✓ Integration as service
EBE – Event Broker E-Commerce (Simplified version) 16 PUSH 10M
17 EBE – Single-tenant approach
18 EBE – Single-tenant approach
19 Limitations • Higher deployment time • ~ 8 minutes
per stack • ~ 2 hours to update all (even with parallelization) • AWS resource limits • Cloudformation APIs • Code Deploy • API GW • Custom solution to prevent throttling • Cost • Lots of identical resources
No downtime Migration: Constraints No action required by the users
20
Migration: Multiple stages Producers Consumers HTTPS SQS HTTPS SQS 21
Producers: HTTPS Deploying endpoint + API GW deployment No deployments
22
Producers: SQS Still use producer specific resources • Access controls
– cannot see which AWS account a message came from • We still want alarms per producer 23
Quick note: Deployments Simplicity Barebones Complexity Feature rich CloudFormation 24
Consumers: Overview 25
Consumers: Single-tenant 26
"Multi-tenant" consumer 27
Migration: Single- to multi-tenant pattern 28
Migration: strategy • Events need to be more self-descriptive •
Dynamic vs static config o Environment vars vs DynamoDB Bundle Dynamic 29
Migration: Strategy • Big bang vs small increments • Many
small blue-green or canary deployments • Switching ESM's was safe and easy 30
31 03 Results
32 Results • Faster deployments • Creation of producer/consumer ~1
minute (from 8 minutes) • No re-deploy all • Cost reduction • Code Deploy • Alarms • KMS • Lambda
33 But... what about the cons? In EBE: • No
strict compliance requirements • Very little customizations pre producer/consumer • Solutions for noisy neighbours -> ESM concurrency
34 Summary Single-tenancy Multi-tenancy • Limited number of customers •
Will not grow fast • Compliance • Customizations • You need to scale
35 Thank you!