camunda-community-hub / zeebe-client-node-js

Node.js client library for Zeebe Microservices Orchestration Engine
https://camunda-community-hub.github.io/zeebe-client-node-js/
Apache License 2.0
152 stars 38 forks source link

Add Support for StreamJobs RPC #333

Closed jwulf closed 8 months ago

jwulf commented 1 year ago

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.

See: https://github.com/camunda/zeebe/issues/11708

jwulf commented 1 year ago

https://github.com/camunda/zeebe/issues/14152

Environment variable to enable it:

ZEEBE_CLIENT_WORKER_STREAMENABLED

jwulf commented 11 months ago

I'm going to target this feature for the 8.4 release.

npepinpe commented 10 months ago

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

jwulf commented 8 months ago

Now tracked here: https://github.com/camunda-community-hub/camunda-8-js-sdk/issues/17