The engineering notebook
RSS feed#mongodb
Articles, practical guides, and engineering notes on mongodb.
By Ashish Bhakhand 108 published articles
Explore the articles
3 articles
Reset filtersSafe MongoDB Writes with Unique Indexes and Atomic Upserts
Replace check-then-write races with database-enforced uniqueness, conditional updates, and deliberate duplicate handling.
MongoDB Behind a Repository Boundary
Keep ObjectIds, query documents, and persistence models out of business logic while preserving the capabilities MongoDB is good at.
Testing Business Logic Without AWS or MongoDB
Use Jest and repository ports to test decisions directly, without building fake Lambda events or connecting to a database.