Upstash Kafka Setup
Create a Kafka cluster using Upstash Console or Upstash CLI by following Getting Started. Create two topics by following the creating topic steps. Let’s name first topic “input”, since we are going to stream this topic to other one, which we can name it as “output”.Project Setup
If you already have a project and want to use Kafka Streams with Upstash Kafka
in it, you can skip this section and continue with Add Kafka Streams into the
Project.
mvn –version
in a terminal or in a command prompt to make sure you have
Maven downloaded.
It should print out the version of the Maven you have:
cd <folder path>
Run the following command:
Add Kafka Streams into the Project
Open the project folder by using an IDE which has maven plugin such as Intellij, Visual Studio, Eclipse etc. Add following dependencies into the dependencies tag inpom.xml
file.