MongoDB
MongoDB® is a NoSQL document database used for high-volume data storage. As a document store, MongoDB makes use of collections and documents rather than tables and rows. It offers a flexible data model for storing JSON-like data, and provides indexing, replication.
Getting Started
Connections come in two flavors: source and sink. Source connections read from an external system and write to a Decodable stream, while sink connections read from a stream and write to an external system. The MongoDB connector can only be used in the sink
role – if you want to use MongoDB as a source, see MongoDB CDC.
Configure As A Sink
To create and configure a connector for MongoDB, sign in to the Decodable Web Console, navigate to the Connections tab, click on New Connection
, and follow the steps below. For examples of using the command line tools or scripting, see the How To guides.
- The connector type will default to
sink
, since that is the only option for MongoDB connectors. - Provide the connection string for your MongoDB instance. Decodable supports both Standard Connection String and DNS Seed List Connection String formats.
Note: the connection string you provide must not contain your username & password. - Provide the Database and Collection you want to ingest records to.
- Provide the username and password of the user on whose behalf the connection is being made.
Start the connection and observe data flow into your MongoDB instance.
Your MongoDB instance may require configuring network access from Decodable IP space. Please contact [email protected] or join our Slack community and we can provide these values to you.
Reference
Connector name | mongo |
Type | sink |
Delivery guarantee | at least once |
Supported stream types | append , change |
Properties
The following properties are supported by the MongoDB connector.
Property | Required | Description |
---|---|---|
connection-string | required | MongoDB connection string without username:password set |
database | required | Database containing the collection |
collection | required | The name of the collection to use |
username | required | Username to use for authentication |
password | required | Password to use for authentication |
Updated about 1 month ago