Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Parallel working on Jobs #19

Open
Semo opened this issue Feb 9, 2022 · 1 comment
Open

Question: Parallel working on Jobs #19

Semo opened this issue Feb 9, 2022 · 1 comment

Comments

@Semo
Copy link

Semo commented Feb 9, 2022

I have the following use case:
Read from a arbitrary Kafka Topic and enqueue it into your queue. The requested callback parameter of Queue.enqueue method will invoke a separate class, which creates a web service call. The web service will return eventually and I'll have a result. The time needed may be between 1-10 s.

Does kq do threaded work automatically, to increase the frequence of web service calls? Or do I have to do something additional?

@joowani
Copy link
Owner

joowani commented Feb 10, 2022

Hi @Semo,

Both queueing (producing) and dequeuing (consuming) is synchronous and do not use threads in the current implementation. You would have to do the threading yourself in the callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants