How do I connect mongodb database with mongoose from my hono app and deploy in cloudflare workers?

I want to make an API that scales infinitely and handles as many requests. I am thinking of using cloudflare workers with hono. but I am having a hard time connecting my mongodb database. Please help me connect my database as cloudflare workers is serverless and I am concerned about how many new connections will be made everytime the workers runs or new worker is created. Please HELP.
3 Replies
Hurby
Hurby7mo ago
You can’t use mongoose in cf worker environment
preetramsha
preetramshaOP7mo ago
So what do I use?
Want results from more Discord servers?
Add your server