From Data to AI with DevRev: Scaling SaaS Platforms with MongoDB
summary
Platform uses MongoDB Atlas with change streams and Kafka CDC, migrates a replica set to a sharded cluster to handle roughly 1–1.5 billion requests per month, and embeds a tenant key into every document for true logical multi‑tenancy so a single converged DB holds business data, vectors and embeddings. Edge strategy runs compute via WebAssembly on Fastly and uses MongoDB Edge to forward‑deploy and cache RAG results, while an Archetype YAML codegen enforces schemas and authorization — the stack scales and meets low‑latency SLAs in production.
AI-written summary · about
chapters (19)
- 0:00Introduction and welcome
- 1:04Designing for future growth
- 3:10Breaking down organizational silos
- 4:55AI transforming expectations
- 7:21SaaS core tenets and challenges
- 10:13Balancing availability and latency
- 11:44Security and multi-tenancy from day one
- 12:07Data and agility as core challenges
- 14:31Why MongoDB for scalability
- 16:15Architecture and Kubernetes setup
- 17:18Event streaming and AI services
- 18:41Edge computing and Fastly CDN
- 20:07WebAssembly for edge efficiency
- 21:13Inverting the edge stack
- 22:57MongoDB Edge and data locality
- 23:41Vector databases and RAG challenges
- 26:08Automation and code generation
- 28:55Embracing physics in data movement
- 30:21Q&A: Scaling vector databases
