The engineering notebook
RSS feedBackend
Articles, practical guides, and engineering notes on Backend.
By Ashish Bhakhand 108 published articles
Explore the articles
42 articles
Reset filtersuv, Ruff, and pytest: A Modern Python Backend Toolchain
Use a small, explicit toolchain for dependency management, formatting, linting, security checks, and behavioral tests.
Documentation as an Engineering Control
Turn architecture, testing, errors, and feature checklists into enforceable defaults that help a backend stay consistent as it grows.
Rate Limiting Is a Product Policy, Not Just Middleware
Choose identities, limits, storage, status codes, and retry behavior based on cost and user experience.
Building Admin APIs with Organization-Scoped RBAC
Design administrative endpoints around explicit permissions, tenant scope, audit trails, and safe response models.
Reliable Webhooks with Authentication, Deduplication, and Reconciliation
Turn provider callbacks into durable, idempotent state changes that remain correct across retries and delayed events.
Safe MongoDB Writes with Unique Indexes and Atomic Upserts
Replace check-then-write races with database-enforced uniqueness, conditional updates, and deliberate duplicate handling.
Building Resumable Backfills Instead of One Giant Sync
Process historical data in bounded windows with durable progress, overlapping retries, and idempotent writes.
Cross-Feature Boundaries in a Modular Backend
Let each feature own its truth and communicate through explicit ports and events instead of importing another feature's internals.
Idempotent Mobile Health Backfills Across Reinstalls and Devices
Use semantic identities and natural keys so repeated health imports repair missing history without inflating aggregates.