Case Study: SimFree Backend Architecture, Security & Automation
01 / Challenge
The Problem A global travel eSIM platform must make destination plans fast and easy to discover while coordinating multiple providers, payment gateways, and asynchronous payment callbacks. Beyond commerce and provisioning, the system requires low-latency APIs, real-time customer support, end-to-end encrypted messaging, strong administrative security, and automated database backup and schema visibility.
02 / Engineering
The Solution Architected and implemented the backend using NestJS and Fastify in TypeScript, combining high-throughput HTTP services with gRPC for microservice communication—including a real-time live-chat service.
Key engineering highlights include:
- Catalogue Caching & Webhook Idempotency: Built destination and plan catalogue support backed by Redis cache windows with tag invalidation, alongside Stripe and BTCPay webhook handling protected by an eight-day idempotency window to safely process retries.
- Sub-100ms Performance: Tuned API paths and caching layers to achieve an ~80ms API response time.
- Real-Time Live Chat & E2E Encryption: Implemented microservice live chat over gRPC with end-to-end encryption for message privacy.
- 2FA-Protected Admin APIs: Secured caching-backed administrative endpoints with Two-Factor Authentication (2FA).
- Automated Backups & ER Diagrams: Set up automated database backups and automated ER diagram generation to keep data recovery reliable and schema documentation up to date.
03 / Outcome
What It Enables The platform delivers global connectivity across 200+ countries and 800+ networks with resilient payment retry handling over the eight-day idempotency window, responsive 80ms API performance, secure 2FA-guarded admin operations, encrypted gRPC live support, and automated database backup and ER diagram workflows.
Explore the Product
See SimFree in Action
Open the current public site to explore the experience.
Technology
Tools & Systems
- NestJS & Fastify (TypeScript)
- gRPC (Microservices & Live Chat)
- Redis (Caching, Tag Invalidation & Idempotency)
- Stripe & BTCPay (Payments & Webhooks)
- End-to-End Encryption & 2FA (Security)
- Automated DB Backups & ER Diagram Generation (Operations & Tooling)
