Skip to content
 
 

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-demo

Tasks for Kafka Workshop

Generic consumer and producer logic to handle messages

  1. Use PayloadReader() and the internal method read() to convert String to Java object
  2. Use peek() to log the ID of incoming payloads.
  3. Use PayloadWriter() and the internal method write() to convert Java object back to String and write the string to the output topic of KafkaTopics.java
  4. Open KafkaApplicationTests and finish implementation of the tests using embedded kafka broker
    • open application.yml and set spring:profile:active to test
    • stop docker container while implementing test.

Tasks to extend the generic setup of consumer/producer

  1. Use filter() to filter out all records that contains name "NASA"
  2. Use split() to split a stream into multiple streams. All payloads containing "NASA" as a customer should be in a seperate stream. Each stream should be mapped to a different topic.

Tasks to add header to kafka message and use header for filtration

About

Repo brukt i forbindelse med kakfa workshop Oslo 2023

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages