Closed vkuznecovas closed 6 years ago
Hi,
First of all, thank you for taking a look at the project. I like your approach to the switches and I agree that this could be a good solution when having a switch statement that needs to be flexible. In this case am I not sure if this approach will add a lot of unnecessary complexity to the method. This switch statement will most likely not grow over time to keep the header of the Kafka messages light weight.
Hello,
First of all, sorry if it does not build - I did not bother setting up the deps required, this is just intended to show how I'd handle the switch(or get rid of it altogether). DIsmiss if you feel like it :) Ignore the other PR, i managed to destroy history. Force pushes for the win.