Skip to content

Add support for connection.string property in the MongoDB CDC Connector #2049

@tonycombocurve

Description

@tonycombocurve

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

MongoDB Atlas has a new and better way to connect to a cluster. It would be easier to support this feature by adding a connection.string property similar to what is done in Debezium MongoDB Connector.

Solution

Add a connection.string property so that the user can generate it from a template so it is easy to support newer versions of MongoDB. The generated connection string would look like this:

mongodb+srv://<username>:<password>@mycluster.gcp.mongodb.net/?retryWrites=true&w=majority

Alternatives

As an alternative you could add a connection.protocol property so that you support the new protocol promoted by MongoDB. See this post for more details:https://www.mongodb.com/developer/products/mongodb/srv-connection-strings/

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions