Hi @kristoffer.jalen - some delay is expected, yes, though 10 seconds sounds a bit long.
The reason behind the delay is the event stream exporter. Zeebe (the workflow engine) sends an event stream to an exporter, which then writes the events to a data store. By default it uses Elasticsearch. When you query the API, you are actually querying that data store. There are several reasons for this architecture, but the primary one is maintaining Zeebe’s distributed nature and allowing each broker to process tasks “independently”.
If you are using a Self-Managed instance, you can install your own exporter, which could be used to trigger events in your application (“push” rather than “pull”).
However, like I mentioned, 10 seconds is longer than I would expect the delay to regularly take. Are you using SaaS or a Self-Managed instance? It seems like that delay can be greatly minimized, but the answer to “how?” depends on how you’re using Camunda.