copyright | lastupdated | ||
---|---|---|---|
|
2017-03-02 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}
{: #kafka_sample}
The Java™ Kafka API sample is an example producer and consumer that is written in Java, which directly uses the Kafka API. You can run this sample locally or in {{site.data.keyword.Bluemix_short}}.
The sample code is in the message-hub-samples GitHub project {:new_window}. Although the sample uses the Kafka API to send and receive messages, the sample uses the {{site.data.keyword.messagehub}} Administration API to create the topic it sends messages to and receives messages from.
For more information about the setup and running of the sample, see the README.md {:new_window}.
For a detailed walkthrough of how to run the sample, see Getting started with {{site.data.keyword.messagehub}}.