Step 4: Consuming data
Run the consumer
You have performed all necessary preparations in the previous step:
-
The tenant and instance configuration already describes your platform-deployment
-
The SASL credentials are already in place
-
The truststore which contains your tenant’s certificate is already installed
We’ll run the remaining examples in the src/main/java/io/axual/examples/kafka/sasl
directory: the consumers.
Open the KafkaClientSASLAvroConsumer.java
and run the main method. Check the logs: you should see some events we just produced.