Skip to main content

MongoDB collection

Overview

MongoDB is a scalable, flexible NoSQL document database platform known for its horizontal scaling and load balancing capabilities, which has given application developers an unprecedented level of flexibility and scalability.

info

Before you set up your data sync destination, make sure to configure your Source.

tip

The MongoDB Collection destination supports batch and real-time syncs.

Destination tab

The following table outlines the mandatory and optional parameters you will find on the Destination tab (Image 1).

The following parameters will help to define your data sync destination and how it functions.

ParameterDescriptionExample
DestinationMandatory. Select your destination from the drop down menu.MongoDB Collection
Connection StringMandatory. The encrypted connection string for your MongoDB Collection. The Connections UI will automatically encrypt this value for you.You can review MongoDB's Connection String guide and parameter descriptions here.
DatabaseMandatory. The name of your MongoDB database.Cinchy
CollectionMandatory. The name of your MongoDB collection.Employees
Use SSLThis checkbox can be used to define the use of x.509 certificate authentication for your sync. If checked, you will need to input the following values taken from your cert:- SSL Key PEM- SSL Certificate PEM- SSL CLA PEM

Image 2: Define your Destination

Retry Configuration

Cinchy v5.6 introduced the Retry Configuration for MongoDB targets. This will automatically retry HTTP Requests on failure based on timeout or connection errors. If the final retry attempt fails it gets logged into the Execution Errors table

This capability provides a mechanism to recover from transient errors such as network disruptions or temporary service outages.

caution

The maximum number of retries is capped at 10.

To set up a retry configuration:

  1. Under the MongoDB destination tab, select Retry Configuration

  1. Select your Delay Strategy.
  • Linear Backoff: Defines a delay of approximately n seconds where n = current retry attempt.
  • Exponential Backoff: A strategy where every new retry attempt is delayed exponentially by 2^n seconds, where n = current retry attempt.
    • Example: you defined Max Attempts = 3. Your first retry is going to be in 2^1 = 2, second: 2^2 = 4, third: 2^3 = 8 sec.

3. Input your Max Attempts. The maximum number of retries allowed is 10.

Next steps