Overview | Install Me | FAQs | Contribute
For a step by step tutorial navigate to the MuleSoft developer website here
For a video of the tutorial go here.
In this tutorial, we’ll walk you through how to publish and subscribe to streams of event data moving through an Apache Kafka cluster. You’ll learn how to:
- Setup a managed Apache Kafka cluster on Heroku
- Setup the Apache Kafka Connector configuration
- Subscribe to events on a Kafka topics using the
Message Listener
operation - Use the
Publish
operation to send messages to Kafka topics
Use the Apache Kafka Connector to participate in event driven architectures. De-couple your applications by publishing and subscribing to streams of data moving through distributed event stores like Apache Kafka.
This sample application is designed to run on MuleSoft's Anypoint Platform.
Install instructions
- Set up your environment.
-
Clone this repository.
-
In Anypoint Studio, select
File
>Import
>Anypoint Studio
>Anypoint Studio project from File System
and click Next. -
Select the cloned repository in the Project Root and make sure to uncheck the
Copy project into workspace
option. -
Click on Finish.
-
Create your keystore and truststore files and copy into
src/main/resources
-
Update your Apache Kafka credentials in the local.secure.yaml file. In Anypoint Studio's package explorer open src/main/resources open local.secure.yaml and update the keystore and truststore passwords. Note that password and token should be encrypted (see video and tutorial above for details).
-
Add Runtime Configurations for env and secret.key variables. Set env to local and set encryption.key to be the value used to encrypt your secure property parameters.
Contributions are what make the MuleSoft community such an amazing place. Any contributions you make are greatly appreciated.
See contributing.md for the MuleSoft Developer principles.