3 ms·
Show HN: MongoDB on Cloudflare Workers 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.
- alexbevi 1y agoI did a writeup on this at https://alexbevi.com/blog/2025/04/11/performance-profiling-mongodb-on-cloudflare-workers/ https://alexbevi.com/blog/2025/04/11/performance-profiling-m... as well.