Skip to content

Azure SignalR doesn't process messages in order under high load  #1655

@bacobart

Description

@bacobart

Describe the bug

SignalR messages sent to the client are processed in order (when sent from the same source to the same clients). This behaviour is observed when hosting signalr yourself. However when Azure SignalR is used then some messages are received out of order when there is a high volume of messages. I couldn't find anything about this in the docs, but according to @davidfowl this should be the case, https://twitter.com/bacobart/status/1557296764100743168.

Expected Behavior

When adding AzureSignalR messages received on the client are in order.

Steps To Reproduce

Reproduction at https://github.com/bacobart/azure-signalr-out-of-order-repro

Without adding .AddAzureSignalR() in the server messages are processed in order as expected. When .AddAzureSignalR() is added some messages are processed out of order.

Exceptions (if any)

none

Further technical details

.net 6.0.400
Microsoft.AspNetCore.SignalR.* are 6.0.8
Microsoft.Azure.SignalR is 1.18.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions