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

Support Zeebe StreamActivatedJobs API #17

Open
jwulf opened this issue Jan 31, 2024 · 5 comments
Open

Support Zeebe StreamActivatedJobs API #17

jwulf opened this issue Jan 31, 2024 · 5 comments
Assignees

Comments

@jwulf
Copy link
Member

jwulf commented Jan 31, 2024

SDK Component

Zeebe

The Zeebe Gateway has a new RPC StreamJobs to open a long-lived stream that essentially "pushes" jobs to the worker.

This obviates polling loops.

camunda/zeebe#14152

Environment variable to enable it:

ZEEBE_CLIENT_WORKER_STREAMENABLED

See also the documentation about the general concept, including how back pressure works and can be implemented for your custom client: https://stage.docs.camunda.io/docs/next/components/concepts/job-workers/#job-streaming

@aleksander-dytko
Copy link

Hi @jwulf, do I assume correctly that this is targeted for 8.5 release?

@jwulf
Copy link
Member Author

jwulf commented Mar 15, 2024

Hi @aleksander-dytko, it will probably soon come after the 8.5 release, asynchronously. There is a lot of work across the entire SDK for the 8.5 release.

@aleksander-dytko
Copy link

Thanks @jwulf. Do you know the rough timeline for this?
The customer raised a Feature Request here and I wanted to provide them with an update

@aleksander-dytko
Copy link

@jwulf @akeller do we know when this item will be delivered? I wanted to update the customer in the feature request

@jwulf
Copy link
Member Author

jwulf commented Apr 28, 2024

This feature is under development, I estimate that it will be available at the end of May. 

In the meantime, would you be able to share the current worker creation parameters? There may be some tuning that can be done with the existing long polling that could mitigate the resource exhaustion. 

Some ideas that occur to me are to extend the long poll period, and also to add a randomised offset to it so that different workers that are started at the same time do not all poll at once.

jwulf added a commit that referenced this issue May 14, 2024
@jwulf jwulf changed the title Support Zeebe StreamJobs API Support Zeebe StreamActivatedJobs API May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants