Introducing the new MongoDB target
In TriggerMesh v1.24 we introduced a new MongoDB target. In this post I want to show you how to set it up. This is particularly useful if you want to store messages persistently or hydrate a data lake based on Mongo.
With the TriggerMesh CLI tmctl, you can create a MongoDB target by using the connection string that you will have previously downloaded (containing the username, password and hostname), the database name and the collection name.
Here's what it looks like with a database called tmctl and a collection called demo:
All the parameters that can be used to configure this target can be obtained via tab completion:
If you want to see all the steps interactively, check out this very short screencast which demonstrates how to build the highly popular integration between a Kafka topic (via a Kafka cluster running in Confluent cloud) and a MongoDB database running on Digital Ocean.
Once you are happy with your local flow you can decide to deploy it on a Kubernetes cluster running TriggerMesh. The MongoDB target API manifest will look like this:
Join us on Slack to learn more and put this new target through its paces.