Skip to content

Handle STOMP messages from client session in order  #21798

Closed
@spring-projects-issues

Description

Marcus Held opened SPR-17265 and commented

In my project I have the case that a client can potentially send a lot of messages simultaneously (which we prefer to avoid, but still can happen. Esp. with hacked clients). This leads to many different threads to modify the state of the same entity which then cause optimistic locking exceptions.

To avoid this I'd like to process all messages of the same client in the same thread. This behavior could be achieved by configuring a ThreadPoolTaskExecutor that distributes the messages accordingly. This strategy was suggested in this stackoverflow question.


1 votes, 2 watchers

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions