Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on CDC Engine for subscriptions #56

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

angrykoala
Copy link
Member

Adds documentation on support for CDC on subscriptions, added on the version 4.4.0 of the library

@angrykoala angrykoala requested a review from lidiazuin October 27, 2023 12:59
@neo-technology-commit-status-publisher
Copy link
Collaborator

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

Comment on lines +64 to +66
* **driver**: The driver to be used for CDC queries.
* **pollTime**: The interval, in milliseconds, between queries to CDC. Defaults to 100ms. Note that poll time is the period between one request finishing and the next one starting. The actual time it takes for CDC events to trigger the subscription will also depend on your network.
* **queryConfig**: An object with the driver query options to be passed to CDC requests. Use the **db** field to define the target db for CDC.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always wonder about this when reading documents which describe optional constructor parameters, but do you think it would be useful to also provide a code example of these being used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe that could be a good idea 🤔

Copy link
Contributor

@MacondoExpress MacondoExpress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@angrykoala angrykoala merged commit adc982f into dev Nov 1, 2023
2 checks passed
@angrykoala angrykoala deleted the cdc-engine branch November 1, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants