b4mad / racing-archived

Apache License 2.0
0 stars 1 forks source link

[FEAT] capture raw UDP packet streams on kafka? #3

Open durandom opened 2 years ago

durandom commented 2 years ago

For new games and debugging purposes if would be good to capture the raw UDP stream somewhere

durandom commented 2 years ago

https://stackoverflow.com/questions/37436177/pushing-udp-messages-to-kafka-topic

durandom commented 2 years ago

This route actually drops the raw UDP packets on a kafka topic https://github.com/b4mad/racing/blob/master/udp-kafka/src/main/java/io/ppatierno/formula1/RawPacketsRouteBuilder.java

@ppatierno is there a way to configure this route via https://camel.apache.org/camel-k/1.6.x/index.html which would require less Java coding?

durandom commented 2 years ago

Maybe use netty to register decoders https://camel.apache.org/components/3.7.x/netty-component.html

ppatierno commented 2 years ago

I have never used Camel K tbh but it's not the main point. In the above example I see some Groovy code, why do you think that this will be less than the Java coding? (never used Groovy too) :-)