https://github.com/npdeehan/kafkaconnectorexample
This is a project that demonstracts Camunda 8's Inbound and outbound connectors to Kafka
https://github.com/npdeehan/kafkaconnectorexample
Last synced: 4 months ago
JSON representation
This is a project that demonstracts Camunda 8's Inbound and outbound connectors to Kafka
- Host: GitHub
- URL: https://github.com/npdeehan/kafkaconnectorexample
- Owner: NPDeehan
- License: apache-2.0
- Created: 2023-09-05T12:37:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T09:01:16.000Z (almost 3 years ago)
- Last Synced: 2025-07-22T01:03:19.943Z (11 months ago)
- Size: 57.6 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Camunda & Kafka Connector Example

### Credentials and Account Creation
You’ll need a Kafka instance running. (the easiest place to do that is [confluent.cloud](https://confluent.cloud/)). You’ll need a Camunda 8 Cluster (the easiest place to do that is [Camunda SaaS](https://signup.camunda.com/accounts)). Then the fun can start.
Connecting the two systems requires authentication and from your Kafka instance you’ll need the following.
* **Username** - You’ll get this from creating an API Key for your Kafka instance
* **Password** - Same as the username, it’s part of the API Key creation
* **Bootstrap** **Server** - After you create a Kafka cluster you’ll find this in the cluster settings.
🔐 It’s important to know that it’s best practice not to simply copy and paste this sensitive information directly into the model but rather to [create a secret](https://docs.camunda.io/docs/components/console/manage-clusters/manage-secrets/) for each of these in your Camunda cluster. Then you can reference it by typing `{{secrete.yourSecreteHere}}` followed by the name of the key you want to access.
For this example to work you'll need to create secretes with the following names:
* KafkaUsername
* KafkaPassword
* KafkaBootstrapServer
Now you’re ready to upload and deploy the process.
### Deploy and Start
Simply upload the bpmn model to your Camunda 8 account. From the modeler you can deploy the process to a cluster.
To start an instance you can create a message on your Kafka cluster to a topic called `newDetails`
The message payload should look like this:
``` JSON
{
"name" : "Niall",
"details" : "Great Hawks Inc.",
"value" : 1000000,
"newStock" : true
}
```
The message should then be picked up by the start event and a process instance should start.