Proplytics / ThinkRealty CRM Backend
An enterprise-scale, high-concurrency microservices monorepo powering multi-tenant real estate management across the Middle East. Featuring Supabase JWKS JWT verification, custom SHA-256 HMAC service signing, Bayut & PropertyFinder XML feed engines, multi-modal WhatsApp LLM agent, and partitioned PostgreSQL schemas.
Visit live siteEcosystem Architecture & Topology
The platform is architected as a specialized FastAPI microservices monorepo backed by a unified API Gateway (Port 8200), multi-tenant PostgreSQL database schemas, partitioned Redis clusters, and Celery background workers.
Theme-Aware Architecture Views
Compare the system topology across dark and light design themes.
Dual-Layer Security & Identity Enforcement
Client traffic terminates at the central TR-API-Gateway, which verifies Supabase JWKS bearer tokens before forwarding requests.
The Gateway signs upstream inter-service HTTP requests using SHA-256 HMAC signatures along with injected X-User-ID, X-Tenant-ID, and X-User-Role headers. Internal microservices resolve identity instantly via a shared zero-trust auth library without redundant DB lookup calls.
• Inter-service request signing with cryptographic SHA-256 HMAC
• Thread-safe
AuthContext provider in FastAPI dependency injection• Fine-grained Role-Based Access Control (RBAC) across 9+ microservices
Core Microservice Domains
Technology Stack & Systems Specs
| Languages & Runtime | Python 3.12, AsyncIO, Uvicorn ASGI Server |
|---|---|
| API Framework | FastAPI, Pydantic v2 (Rust-compiled validation) |
| Database & ORM | PostgreSQL (Multi-tenant Schemas), SQLAlchemy 2.0 Async, AsyncPG, Alembic |
| Caching & Task Broker | Redis 7 (Partitioned DBs), Celery 5 Async Task Workers |
| Security & Auth | Supabase JWKS, SHA-256 HMAC Inter-service Signing, Shared Auth Library |
| Tooling & Code Quality | uv package manager, Ruff linter/formatter, Mypy, Pytest-Asyncio (80% coverage gate) |

