- DATE:
- AUTHOR:
- PowerSync Product Team
MongoDB as a backend database: Now in Beta
We’re excited to announce the Beta release of MongoDB support as a backend database for PowerSync!
In PowerSync terminology, Beta means the package is production-ready, provided you've adequately tested your use case. We typically avoid breaking API changes when transitioning from Beta to V1, so you can build with confidence.
If you’re new to MongoDB support in PowerSync, check out this blog post to learn how PowerSync offers a compelling alternative to Atlas Device Sync.
What’s New in the Beta
This beta release brings the following key updates:
We added the option to use MongoDB post-images when replicating changes, ensuring improved consistency of updates. Learn more in the documentation.
We’ve reduced the permissions required for replication by switching from the global change stream (which required
readAnyDatabase
permissions on Atlas) to a database-specific change stream. View the updated permissions requirements for MongoDB Atlas and self-hosted MongoDB.And, of course, we fixed several issues from the Alpha release, including:
Resolved an issue where initial replication of large datasets could fail due to a limited snapshot time window.
Connection configuration errors now provide clearer messages, such as identifying when PowerSync IPs aren’t allowed for Atlas users instead of the generic "Something went wrong."
Getting Started
Existing MongoDB Users:
The beta introduces post-image support, a key feature for maintaining data consistency. While this feature is not enabled by default for existing PowerSync instances, due to compatibility considerations, we highly recommend enabling it in your connection settings. Note that this will require additional permissions. Learn more here.
New Users:
PowerSync Cloud
Sign up on powersync.com if you haven’t already. In the PowerSync Dashboard, create a new instance and select "MongoDB" as the connection type. Proceed to enter your connection details by following these instructions.
Self-host PowerSync
An end-to-end demo app is available here. Please refer to its README for further instructions. Ensure that you use the latest Docker image: journeyapps/powersync-service:latest
Resources
Details about migrating from Atlas Device Sync to PowerSync can be found in our docs here. We continuously update this guide as we flesh out the user journey.
Help and feedback
If you need any help getting started or have any questions, chat with us on Discord. We'd also love to hear your feedback.