News for hackers. Stuff that matters.

Show HN: MongoDB on Cloudflare Workers with Do

https://github.com/eashish93/mongodb-with-do

Example repo showing how to use mongodb correctly with cloudflare workers. It's a fully drop-in-replacement of most common methods (aggregation, transaction, find, update etc).

Reason why cloudflare durable object is required with mongodb as workers are stateless and mongodb pooling doesn't help here.

( 1 comment | 2 points | on HN )
Re:Show HN: MongoDB on Cloudflare Workers with Do by alexbevi on Sunday May 25, 2025 @08:56PM (#44092846)