Multi-Tenant AI Microservices Platform built with Spring Boot
AI-Tenant is a production-style multi-tenant microservices backend application designed using Spring Boot.
It demonstrates secure JWT-based authentication, API Gateway routing, tenant isolation, Redis caching, and CI/CD automation.
This project is intentionally built without:
- OAuth
- Refresh Tokens
- Eureka / Service Discovery
It focuses on clean architecture and real-world backend design.
Client → API Gateway → Auth Service / Business Services
↓
PostgreSQL
↓
Redis
- User logs in via Auth Service.
- Auth Service generates JWT containing
tenantId. - Client sends JWT in Authorization header.
- API Gateway validates JWT.
- Gateway forwards request to appropriate service.
- Service processes tenant-specific data.
- Stateless authentication using JWT
- Token generated by Auth Service
- Token validated in API Gateway
- Tenant ID embedded inside JWT claims
- Redis used to cache user-tenant mapping