PropSpaceX API Gateway
Entry point for PropSpaceX — a Web2/Web3 real-estate microservice platform. Handles hybrid auth, distributed rate limiting, and gRPC routing across the service cluster.
System Architecture
A request enters through Nginx, hits the Express gateway (auth, rate limiting, logging), is verified against the User Service, then routed over gRPC to the Property Service — which checks on-chain ownership before persisting to MongoDB. Payment and mail flows run asynchronously through RabbitMQ.
Database Design
Cross-service view — identity lives in PostgreSQL (User Service); properties, media, transactions, and mail jobs live in MongoDB, linked by owner and property references.
Engineering Challenges
High availability
Circuit breaker patterns and health checks keep the platform responsive even when downstream services degrade.
Distributed rate limiting
Redis-backed sliding-window limits shared across gateway instances, so burst traffic is throttled fairly no matter which node serves it.
Service discovery
A dynamic service registry lets new microservices join the cluster without redeploying the gateway.
Request tracing
Correlation IDs propagate through every gRPC hop for end-to-end visibility across all services.