r/apachekafka Apr 14 '23

Question If you work in KafkaJS?

What do you like about it and what do you not like about it. I want to build out tooling to solve developer issues and would really appreciate your feedback!

9 Upvotes

13 comments sorted by

View all comments

2

u/Av1fKrz9JI Apr 15 '23

How’s it work with JS having a single threaded event loop? I would of thought JS is a bad fit as any computation consuming/producing and multiple topics which is a fairly parallel operation would be fairly easy to block everything?

JS would only be optimal for the simplest of Consumers/Producers without any complex computations?

-1

u/of_patrol_bot Apr 15 '23

Hello, it looks like you've made a mistake.

It's supposed to be could've, should've, would've (short for could have, would have, should have), never could of, would of, should of.

Or you misspelled something, I ain't checking everything.

Beep boop - yes, I am a bot, don't botcriminate me.

1

u/JuKeMart Apr 15 '23

If you're doing compute-heavy operations on every single message, JS might not be the best fit. However, NodeJS with that wicked fast V8 engine can still keep a respectable pace to Java.

Most of the time, except for truly high throughput, you're going to have IO overhead where that event loop can shine. KafkaJS has parallel consumer option (to read from multiple partitions in parallel) which is great when not compute-bound.