Fork me on GitHub
#jackdaw
<
2021-05-06
>
finchharold08:05:20

What exactly happens when you poll? Why we can't we poll inside a graphql streamer?

gklijs11:05:16

Well, you can. If you create a Consumer for each streamer. But that would not scale.

Daniel Stephens13:05:50

This might be helpful https://chrzaszcz.dev/2019/06/16/kafka-consumer-poll/ This is the quote that matters for your issue > Due to the fact that consumer internally is not thread-safe, so it ensures that only one thread at the time can access it, hence acquiring lock here. In case you call methods from different threads, you’ll get an exception in one of them.