Let’s hope for the best then.
Any workaround for this issue in the meantime?
Until Cloudflare adds native support for TLS to their workers the workaround is to leverage MongoDB’s Data API instead (see Create a REST API with Cloudflare Workers and MongoDB Atlas | MongoDB for an example of this)
You can also do this using a service binding with an RPC worker. One would still use Realm, but instead of making calls to the database via REST/http requests one can call methods directly from main app. It is explained in this blog post from Cloudflare.
We've added JavaScript-native RPC to Cloudflare Workers.
I build a test app based on todo-list example in the REST-API, I could share the code if anyone is interested.
Hi MongoDB @BlindChicken, Please do share the code to connect to mongodb using cf workers.
I have been using the data api, and while it works with workers, the limitations such as the inability to perform simple queries such as findOneAndUpdate and the 2000 ms connection time is greatly limiting our decision to use Mongodb in future projects.
Even using serverless database option provided by cf, i belive the nodes are not distributed globally is that right?
Really looking to speed up Data API access or finding a driver that would work with cf workers. – your update would be appreciated.