Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 36 forks source link

Service bus session ordering guarantees with batch dispatch and multiple workers #94

Closed paulbatum closed 2 years ago

paulbatum commented 4 years ago

A function app that is using the FUNCTIONS_WORKER_PROCESS_COUNT setting to configure multiple out-of-proc workers will not get in-ordered processing of service bus messages with sessions enabled if the function is configured to do batched dispatch.

Either we should find a way to fix (i.e. force all messages in the batch to be sent to the same worker) or fail to index the function.

alrod commented 2 years ago

@paulbatum, can you please clarify the issue? For session enabled SB entity we use SessionClient and block session batch receiving. Then we send batch of message to a language worker.

paulbatum commented 2 years ago

You're right, since the entire batch is sent to a single worker, there is no issue here.

alrod commented 2 years ago

Chatted with @paulbatum offline and decided to close the issue.