Alper Ebicoglu

Building Multi-Tenant ASP.NET Core Applications: Best Practices and Real-World Solutions

What if your application code didn't need to know about multi-tenancy? This session shows how to automatically enforce data isolation and build cleaner SaaS applications.

Building Multi-Tenant ASP.NET Core Applications: Best Practices and Real-World Solutions
#1about 4 minutes

Understanding the fundamentals and benefits of multi-tenancy

Multi-tenancy is an architectural approach for SaaS applications that offers cost efficiency, a consistent user experience, and easier scalability.

#2about 3 minutes

Navigating the common challenges of multi-tenant architecture

Building multi-tenant systems requires solving key challenges like data isolation, tenant-specific customization, noisy neighbors, and heightened security risks.

#3about 2 minutes

Choosing the right deployment model for your application

A hybrid deployment model combining a shared application with both shared and dedicated databases offers the most practical and flexible solution.

#4about 3 minutes

Identifying the active tenant from incoming web requests

The active tenant can be resolved from a request using various methods like user claims, query strings, URL routes, headers, cookies, or subdomains.

#5about 7 minutes

Automating data isolation with EF Core Global Query Filters

Use an IMultiTenant interface and EF Core's Global Query Filters to automatically apply tenant ID filters to all database queries, preventing data leaks.

#6about 2 minutes

Managing dynamic tenant-specific database connection strings

Support tenants with dedicated databases by storing their connection strings in a master table and dynamically resolving them at runtime.

#7about 2 minutes

Changing the active tenant context for background jobs

A disposable pattern allows you to safely switch the active tenant for background processes and ensures the original context is restored afterward.

#8about 3 minutes

Implementing database migration strategies for multi-tenant apps

A blue-green deployment with a load balancer is the recommended strategy for migrating tenant databases with minimal downtime.

Related jobs
Jobs that call for the skills explored in this talk.
SabIna compys

SabIna compys
Vienna, Austria

Remote
20-100K
Intermediate
JavaScript
.NET
+1

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
WWC24 Talk - Scott Hanselman - AI: Superhero or Supervillain?
Join Scott Hanselman at WWC24 to explore AI's role as a superhero or supervillain. Scott shares his 32 years of experience in software engineering, discusses AI myths, ethical dilemmas, and tech advancements. Engage with his live demos and insights o...
WWC24 Talk - Scott Hanselman - AI: Superhero or Supervillain?
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
BB
Benedikt Bischof
Why You Shouldn’t Build a Microservice Architecture
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Michael Eisenbart who talks about the pros and cons of microservice architecture.‍About the speaker:‍Michael has been working for Bosch as a sof...
Why You Shouldn’t Build a Microservice Architecture

From learning to earning

Jobs that call for the skills explored in this talk.