CouchDB

I know Workers requires Hyperdrive to connect to an external SQL database. What's the situtation with NoSQL Databases. Specifically CouchDB that has an HTTP API. Is it subject to the same limits or should it just work?
2 Replies
Chaika
Chaika3d ago
Workers don't require Hyperdrive to connect to databases. Workers do support TCP connections outbound without Hyperdrive or anything. It's just not a good idea since Workers can be spun up on any one of Cloudflare's many machines and make passing promises/etc between requests difficult or impossible, so without Hyperdrive's connection pooling you just have a ton of fresh connections. Workers have fetch() just like browsers do, you can just use that for CouchDB. Worker's fetch goes through the normal Cloudflare CDN layer, so you have some connection pooling/etc there, as well as http connections just being way cheaper then DB connections
Elaine Jackson Pimentel
Thank you for the clarification

Did you find this page helpful?