You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Elsa.Activities.Kafka.Helpers.Consumer class is using the observer pattern to notificate about received messages from Kafka.
The "notification" process is working asynchronous (fire and forget method) which is causing an issue, if there is a lag in the kafka queue or a bulk processing is intended.
In other words; the consumer is trying to preparing all (outstanding) queue messages in parallel and this can cause in extreme cases the exhausting of all pooled database connections.
To prevent this kind of issues, the process between receiving and preparing should be in an await mode, and the process should stop/retry if preparation of a message will fail. Otherwise, the message which is not processed will be lost.
The text was updated successfully, but these errors were encountered:
The Elsa.Activities.Kafka.Helpers.Consumer class is using the observer pattern to notificate about received messages from Kafka.
The "notification" process is working asynchronous (fire and forget method) which is causing an issue, if there is a lag in the kafka queue or a bulk processing is intended.
In other words; the consumer is trying to preparing all (outstanding) queue messages in parallel and this can cause in extreme cases the exhausting of all pooled database connections.
To prevent this kind of issues, the process between receiving and preparing should be in an await mode, and the process should stop/retry if preparation of a message will fail. Otherwise, the message which is not processed will be lost.
The text was updated successfully, but these errors were encountered: