Ably LiveSync: Official Realm device sync replacement
Automatically keep frontend clients in sync with changes to your Mongo Atlas DB with our Ably LiveSync MongoDB Connector.
Introducing the MongoDB Connector for Ably LiveSync
Working in partnership with MongoDB, Ably has developed a MongoDB Connector for their Ably LiveSync product. Ably LiveSync enables you to seamlessly fan-out MongoDB Atlas state to billions of clients in realtime, ensuring reliable, low-latency delivery of your document data.
With minimal code, LiveSync seamlessly integrates into your existing tech stack, handling the complexities of reconnections, message replay, and data integrity. No need to overcome the problems associated with running a database locally. No additional charges - just standard Ably consumption-based pricing.
Integrating LiveSync with your MongoDB-based application
Take advantage of Ably’s pre-built and managed MongoDB database connector, which is enabled through an Ably integration rule.
The integration rule will consume document changes from your MongoDB deployment via the MongoDB Change Streams API. The rule exists as a “database connector” component that is entirely provisioned and managed by Ably and is fault-tolerant with automatic fail-over.
When a change event is received over the Change Streams API it is published to an Ably channel. When you configure the integration rule, you can specify how change events are mapped to individual Ably channels. Clients can then subscribe to database changes by subscribing to Ably channels.
What are the key benefits of Ably LiveSync?
Limitless fan-out: Powered by the Ably platform, LiveSync is built to perform at scale. Broadcast updates from one to millions of clients, in milliseconds and handle trillions of operations each month.
Keeping things simple: We're not trying to be a local database. If local first isn’t a requirement, you can avoid the complexities of building a local first application. LiveSync and the MongoDB connector seamlessly integrate into your application stack to enable quick development times.
Connection state recovery: Ably Pub/Sub’s connection state recovery ensures that any failed connections are re-established with any missed messages replayed to maintain a synchronized state.
Data integrity guarantees: As changes happen in the MongoDB, Ably guarantees that all updates are delivered in the right order, exactly once. LiveSync lets you update your database state and publish to Ably, transactionally.
Low cost device synchronization: We only charge for messages, connections and channels with a simple consumption-based pricing model, billed per minute. There are no additional costs to then use LiveSync or the MongoDB connector.