With Space Cloud, you can subscribe to realtime changes in your database.
Space Cloud allows you to subscribe to a particular result set in your database by specifying a where clause. So whenever anything within that result set changes, i.e. new documents are added/updated/deleted, you get notified.
However, for efficient bandwidth utilization, Space Cloud doesn’t send the entire result set on every change. It only sends the changed document to the concerned clients. The client can choose whether or not to receive the initial documents in the result set at the time of subscribing.
Note: You can write a stateful link if you wish to maintain the entire result set while using any REST or GraphQL client libraries. However, if you are using one of the client SDKs of Space Cloud, you get the stateful link out of the box.
Space Cloud uses a CDC (Change Data Capture) mechanism to provide strong guarantees and reliability.
Benefits of using CDC based architecture:
CDC based architecture has a few limitations which are documented below.
Following are the limitations of the subscriptions in Space Cloud: