Skip to content

MongoWaitQueueFullException in Webflux + Reactive Mongo #22332

@cbornet

Description

@cbornet

Affects: 5.1.2.RELEASE


The latest TechEmpower's benchmark shows a lot of errors for Webflux + Spring data mongo.
I digged and found out that under load, we get a lot of
com.mongodb.MongoWaitQueueFullException: Too many threads are already waiting for a connection. Max number of threads (maxWaitQueueSize) of 500 has been exceeded.
exceptions.

From our discussion on gitter, @mp911de thinks that "WebFlux could have a notion of connection backpressure and should limit subscription rate/demand rate to provide a sense of protection for downstream components within the application".

Code of the benchmark here

Related issue : #20338

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions