Назад к проектам

multitenacy-microservices

Архитектурный демо-проект на Spring Boot для сравнения стратегий мультитенантности в микросервисах. В отдельных сервисах показаны изоляция через базу на tenant, схему на tenant и tenant-колонку.

Ключевые возможности

  • Сравнивает модели изоляции: отдельная база, отдельная схема и tenant-колонка
  • Разделяет employee, organization, device и tenant registry по отдельным сервисам
  • Использует PostgreSQL, Consul, Docker Compose, Actuator и проверку tenant-заголовков для локального тестирования архитектуры

Технологии

JavaSpring BootSpring CloudPostgreSQLConsulDocker
Spring Boot backend architecture demo for comparing multi-tenancy strategies across microservices. The repository contains four services and local infrastructure for tenant-aware backend design: `employee-service`, `organization-service`, `device-service`, and `tenant-service`. The project demonstrates several tenant data-isolation approaches in one system while keeping service boundaries explicit. Employee data uses a database-per-tenant model, organization data uses schema-per-tenant isolation, device data uses tenant-column isolation, and the tenant service stores shared tenant metadata. The public repository path keeps the historical typo `multitenacy-microservices`, while the README and Gradle root project use the corrected `multitenancy-microservices` spelling.