← All work
CASE STUDY · [02]
YEAR · 2024
ROLE · Backend architect

Multi-Tenant Dental SaaS Backend

Production SaaS backend for tenant-isolated dental operations, claims processing, payment workflows, clinical charting, and Unity-based visualization.

Outcomes
0Modules
0Domain entities
0LoC
0Vektis char lines
MEDIA SLOT
dental SaaS hero (Unity 3D chart, admin panel, or architecture)
Deep dive coming
BRIEF

A dental SaaS platform serving multiple clinic tenants needed database-level isolation, Dutch healthcare claims serialization, dunning workflows, and a live 3D charting client. All of it had to hold under concurrent tenant traffic.

[01]

Architected a database-per-tenant PostgreSQL isolation model on Azure Flexible Server across 22 modules and 46 domain entities. Roughly 68,700 lines of code.

[02]

Designed Redis-backed runtime tenant resolution keyed by dbConfig:<tenantCode>, automated idle-connection cleanup, and semaphore-based request controls to protect shared infrastructure under load.

[03]

Built a custom NestJS EntityManagerForkInterceptor to bind request-scoped em.fork() transaction contexts. This resolved connection pool exhaustion that was hitting under concurrent tenant traffic.

[04]

Programmed a Vektis MZ301 v1.3 claims serialization engine with fixed-width 310-character line validation, integer-cent conversion, and BSN, AGB provider type, BIG, and UZOVI rule checks. Dutch healthcare claim spec, byte-precise.

[05]

Built an 8-stage PayT dunning and invoice webhook pipeline. Raw-body HMAC-SHA256 validation with timingSafeEqual(), and partial-unique PostgreSQL indexes to prevent duplicate payment processing.

[06]

Engineered tooth-level clinical observation APIs mapping Universal identifiers across surfaces and condition states. These feed chronological color updates into a Unity 3D dental visualization client.

STACK
NestJSPostgreSQLRedisAzure Flexible ServerUnity 3DTypeScript