Member-only story

Multi Tenant

Bernardo Teixeira
3 min readSep 15, 2021

--

Photo by Nick Fewings on Unsplash

Imagine that you have one application and that application is using one database.
You will think, one application host for each customer. That isn’t bad(depend on the scenarios). But it will be expensive, if you are using Azure, one application service can cost you around 60€ to 260€.

Let’s do some math -> you have three customers so, 3 * 60 will pay you about 180 euros/month. (don’t even count on the databases).

Multi-Tenant can make your expenses, a bit cheaper. How?

Multi-tenant have three patterns, single database, multi-database and hybrid.

Single Database

One application with only one database, this is ok you will pay way less but you can have some problems with performance. Because every request needs to filter with the tenant id.
Also, every customer will not have his database(this can be a problem depending on the customer and application).

--

--

Bernardo Teixeira
Bernardo Teixeira

Written by Bernardo Teixeira

Software Engineer.. Red Panda Lover

No responses yet