Skip to main content

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 site
  • Microservices Architect
  • Lead Python Engineer
  • Security & Auth Specialist
  • Distributed Task Systems

Ecosystem 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.

Proplytics Microservices Architecture Topology Diagram

Theme-Aware Architecture Views

Compare the system topology across dark and light design themes.

Dark Mode Architecture View
Proplytics Dark Theme Architecture
Light Mode Architecture View
Proplytics Light Theme Architecture

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.

Zero-Trust Auth Architecture
• Edge JWKS JWT Validation via Supabase Key Service
• 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

Listing Service (Port 8001)
Manages multi-tenant property listings and runs automated background XML feed generators for major portals including Bayut, Dubizzle, and PropertyFinder UAE.
Lead Management (Port 8002)
High-throughput lead ingestion webhooks, automated deal pipeline transitions, agent commission tracking, and lead assignment rules.
AI Agent Service (WhatsApp)
Multi-modal LLM agent executing real-time WhatsApp conversation flows, media OCR, automated lead qualification, and instant CRM synchronization.
Activity & Audit (Port 8004)
Centralized event stream tracking user actions, property updates, deal lifecycle events, and audit logs into unified timelines.

Technology Stack & Systems Specs

Languages & RuntimePython 3.12, AsyncIO, Uvicorn ASGI Server
API FrameworkFastAPI, Pydantic v2 (Rust-compiled validation)
Database & ORMPostgreSQL (Multi-tenant Schemas), SQLAlchemy 2.0 Async, AsyncPG, Alembic
Caching & Task BrokerRedis 7 (Partitioned DBs), Celery 5 Async Task Workers
Security & AuthSupabase JWKS, SHA-256 HMAC Inter-service Signing, Shared Auth Library
Tooling & Code Qualityuv package manager, Ruff linter/formatter, Mypy, Pytest-Asyncio (80% coverage gate)