SlideShare a Scribd company logo
Buidling a multi-tenant
application using 50k databases
Henry Been
ROME - APRIL 13/14 2018
Scale up
Scale out
Server 1 Server 2 Server 3 Server 4 Server n
Database
loadbalancing
WHY?
1 question:
Why only a single database?
•Single point of failure
•More expensive
•Cannot grow in small steps
•Scaling up is failing up [1]
[1] Scalability rules: 50 principles for Scaling Web Sites
Server 1 Server 2 Server 3 Server 4 Server n
DB
loadbalancing
DB DB DB DB DB
Using a database per tenant
•Unlimited scaleability
•Isolation of failure
•Roughly 2,5 times cheaper
•100% tenant isolation
•Better fit for legacy applications
100% tenant isolation
•Snapshot backup/restore
•Recover to point in time
•Compliance
•Limited authorization risks
Better fit for legacy applications
•Designed for single tenant, single db
•Allows for move to the cloud
•Use case I will present
Disclaimer!
"The Long Road Ahead" (CC BY-NC-ND 2.0) by CC Chapman
SnelStart
How it happened at
"Incidental Expenses" (CC BY-NC 2.0) by tim ellis
SnelStart
A
SnelStart
AA
SnelStart
SnelStart
A
Web-
application A
SnelStart
SnelStart
Web-
application A
Henry been   database-per-tenant with 50k databases
Cost-efficiency: elastic pools
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
Henry been   database-per-tenant with 50k databases
So…. what do I need?
"tools" (CC BY-NC-ND 2.0) by ᴾᴴᴵᴸ
Services platform
•Login
•Retrieve connection string
•Create tenant
•Destroy tenant
•Backup tenant
•Restore tenant
Catalog
•Customers / Accounts
•Users
•Tenants
•Authorizations
•Operations
• Create / destroy
• Backup/restore
• Etc
User
Directory
A pointer on operations
•Modeled as a state machine, with steps
•Designed for failure and resume
•Properties
•Retry
•Idempotentcy
•Reentrant
•Queue vs. database
User
Directory
A lighter implementation
User
Directory
Demo time!
"Mad Science!" (CC BY-NC 2.0) by FallenPegasus
Wich way forward?
•Unlimited scaleability
•Isolation of failure
•Migration of legacy
•More effort to build!
Wich way forward?
"Balanced Stones.Sausalito" (CC BY-SA 2.0) by DrPleishner
HENRY BEEN
Independent geek
E: consultancy@henrybeen.nl
T: @henry_been
L: linkedin.com/in/henrybeen
W: henrybeen.nl
Do try this at home!

More Related Content

PDF
BlazeMeter Presents at the High Performance Drupal Meetup
PPTX
Aws 12 Month Free Tier for Web Designers and Developers
PPTX
How to Build High Performance : WordPress
PPTX
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
ODP
Zero Downtime JEE Architectures
PDF
Journey towards serverless infrastructure
PDF
Custom coded projects
PPTX
What to consider when monitoring microservices
BlazeMeter Presents at the High Performance Drupal Meetup
Aws 12 Month Free Tier for Web Designers and Developers
How to Build High Performance : WordPress
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
Zero Downtime JEE Architectures
Journey towards serverless infrastructure
Custom coded projects
What to consider when monitoring microservices

What's hot (19)

PPTX
Building a PaaS with Docker and AWS
PPTX
Cloud patterns
PPTX
Containerization: The DevOps Revolution
PPTX
Modern Cloud Fundamentals: Misconceptions and Industry Trends
PPTX
Immutable Infrastructure: the new App Deployment
PDF
Bosh - Configuring Services
PPTX
Blue green deployment
PPTX
Elixir Processes
PPTX
Breaking the Speed Limit: Faster Websites Win
PPTX
Perf 101-lab-slideshare
PDF
Dcpl cloud computing amazon fail
PPTX
Windows Azure Zero Downtime Upgrade
PDF
Open analytics meetup alex poon (1)
PDF
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
PPTX
OSCON2014: Understanding Hypervisor Selection in Apache CloudStack
PPT
Enterprise Beacon Object Hive - Siebel Version Control
PDF
[Christopher Ngo] Intro DevOPS XP Day 2015
PDF
Microservices with Terraform, Docker and the Cloud. DevOps Wet 2018
PPTX
Scaling Systems: Architectures that Grow
Building a PaaS with Docker and AWS
Cloud patterns
Containerization: The DevOps Revolution
Modern Cloud Fundamentals: Misconceptions and Industry Trends
Immutable Infrastructure: the new App Deployment
Bosh - Configuring Services
Blue green deployment
Elixir Processes
Breaking the Speed Limit: Faster Websites Win
Perf 101-lab-slideshare
Dcpl cloud computing amazon fail
Windows Azure Zero Downtime Upgrade
Open analytics meetup alex poon (1)
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
OSCON2014: Understanding Hypervisor Selection in Apache CloudStack
Enterprise Beacon Object Hive - Siebel Version Control
[Christopher Ngo] Intro DevOPS XP Day 2015
Microservices with Terraform, Docker and the Cloud. DevOps Wet 2018
Scaling Systems: Architectures that Grow
Ad

Similar to Henry been database-per-tenant with 50k databases (20)

PPTX
Cloud brew cloudcamp
PPTX
“Salesforce Multi-tenant architecture”,
PPTX
Multi Tenancy In The Cloud
PDF
Schema-based multi-tenant architecture using Quarkus & Hibernate-ORM.pdf
 
PPTX
Multi-Tenancy
PPTX
What is Multi-Tenant Architecture ?
PPTX
Software as a service
PPTX
One App, Many Clients: Converting an APEX Application to Multi-Tenant
PPTX
Create scalable and configurable multi tenancy application
PDF
Multitenant applications: How and Why
PDF
Database Multitenancy in Ruby
PPTX
Multi tenancy - Wining formula for a PaaS
 
PPTX
Tenants: A Look Behind the Scenes
PDF
Multi-tenancy in Java
 
PDF
Building a multitenant application with Django
PPTX
SaaS transformation with OCE - uEngineCloud
PPTX
Multi tenant architecture
PPTX
Multi-tenancy: Winning formula for a PaaS
PDF
Scaling Multi-Tenant Applications Using the Django ORM & Postgres | PyCaribbe...
PDF
Comparing Single-Tenant and Multi-Tenant Cloud Architectures
Cloud brew cloudcamp
“Salesforce Multi-tenant architecture”,
Multi Tenancy In The Cloud
Schema-based multi-tenant architecture using Quarkus & Hibernate-ORM.pdf
 
Multi-Tenancy
What is Multi-Tenant Architecture ?
Software as a service
One App, Many Clients: Converting an APEX Application to Multi-Tenant
Create scalable and configurable multi tenancy application
Multitenant applications: How and Why
Database Multitenancy in Ruby
Multi tenancy - Wining formula for a PaaS
 
Tenants: A Look Behind the Scenes
Multi-tenancy in Java
 
Building a multitenant application with Django
SaaS transformation with OCE - uEngineCloud
Multi tenant architecture
Multi-tenancy: Winning formula for a PaaS
Scaling Multi-Tenant Applications Using the Django ORM & Postgres | PyCaribbe...
Comparing Single-Tenant and Multi-Tenant Cloud Architectures
Ad

More from Henry Been (13)

PPTX
Henry been azure resource manager - inside out
PDF
Dot netsaterday henry been - logging instrumentation dashboards alerts
PDF
Cloud brew henry been - logging instrumentation dashboards alerts
PDF
Henry Been - Secure development: keeping your application secrets private
PDF
Serverless computing henry been - logging instrumentation dashboards alerts
PDF
Serverless computing henry been - continuous deployment of azure functions
PPTX
Logging, Instrumentation, Dashboards and Alerts - for developers
PPTX
Secure deployments keeping your application secrets private -duug fest
PPTX
Secure deployments keeping your application secrets private - condensed
PPTX
Writing, build and releasing your own vsts extension
PPTX
Continuous delivery for the it pro
PPTX
Focus on business value by going Serverless
PPTX
Henry been - Multi-tenant applications using 30k databases
Henry been azure resource manager - inside out
Dot netsaterday henry been - logging instrumentation dashboards alerts
Cloud brew henry been - logging instrumentation dashboards alerts
Henry Been - Secure development: keeping your application secrets private
Serverless computing henry been - logging instrumentation dashboards alerts
Serverless computing henry been - continuous deployment of azure functions
Logging, Instrumentation, Dashboards and Alerts - for developers
Secure deployments keeping your application secrets private -duug fest
Secure deployments keeping your application secrets private - condensed
Writing, build and releasing your own vsts extension
Continuous delivery for the it pro
Focus on business value by going Serverless
Henry been - Multi-tenant applications using 30k databases

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Introduction to Artificial Intelligence
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
history of c programming in notes for students .pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Operating system designcfffgfgggggggvggggggggg
PPT
Introduction Database Management System for Course Database
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Understanding Forklifts - TECH EHS Solution
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Introduction to Artificial Intelligence
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
ManageIQ - Sprint 268 Review - Slide Deck
history of c programming in notes for students .pptx
Odoo POS Development Services by CandidRoot Solutions
L1 - Introduction to python Backend.pptx
Operating system designcfffgfgggggggvggggggggg
Introduction Database Management System for Course Database
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
How Creative Agencies Leverage Project Management Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Design an Analysis of Algorithms I-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Understanding Forklifts - TECH EHS Solution

Henry been database-per-tenant with 50k databases