Hard Kafka & Messaging Patterns
Content-Based Routing
Implement content-based routing. Given messages with types: "ORDER:laptop", "LOG:debug info", "ORDER:phone", "LOG:error info". Route ORDER messages to an orders stream and LOG messages to a logs stream. Use groupBy() operator and print with appropriate labels.
Expected: "Orders: laptop", "Logs: debug info", etc.
Expected
Orders: laptop Orders: phone Logs: debug info Logs: error info
Main.kt