5 articles
Insights
Architecture notes from the field: AI products, RAG, microservices, multi-tenant SaaS and serverless — the patterns Rabin Maharjan reaches for, and the trade-offs behind them.
AI · 3 min
RAG that earns trust: how ARA answers questions about me
Retrieval-augmented generation fails quietly when retrieval is weak and answers can't be checked. Hybrid search, context-aware chunks, citations and a retrieval eval make it trustworthy. ARA, the assistant on this site, uses all four.
· Read →
Architecture · 3 min
Booking flows are sagas, not transactions
Flights, hotels, cars and payments live in different systems you don't control. Model the booking as a saga with compensations, idempotency keys and a reconciliation loop — not as one big database transaction.
· Read →
Architecture · 2 min
The outbox pattern: reliable events for e-commerce
Saving an order and publishing "order placed" are two writes to two systems, and one of them will eventually fail. The transactional outbox makes event-driven commerce reliable without distributed transactions.
· Read →
Architecture · 3 min
Choosing a tenancy model for multi-tenant SaaS
Shared schema, schema per tenant or database per tenant? The right answer depends on isolation requirements, tenant count and how you'll run migrations, not on fashion. Here's how I decide.
· Read →
Azure · 3 min
Serverless for the boring 80%
Most of a platform's background work (notifications, reports, scheduled jobs, integrations) doesn't need always-on servers. Moving it to Azure Functions and Logic Apps is how we cut operational costs by 30%.
· Read →