Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Tenant 🚀

Multi-Tenant AI Microservices Platform built with Spring Boot


📌 Overview

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.


🏗️ Architecture

Client → API Gateway → Auth Service / Business Services

PostgreSQL

Redis

Flow

  1. User logs in via Auth Service.
  2. Auth Service generates JWT containing tenantId.
  3. Client sends JWT in Authorization header.
  4. API Gateway validates JWT.
  5. Gateway forwards request to appropriate service.
  6. Service processes tenant-specific data.

🔐 Authentication Design

  • 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

About

AI-Tenant is a production-ready multi-tenant microservices platform built with Spring Boot, featuring JWT-based authentication and API Gateway security.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages