asyncmongo icon indicating copy to clipboard operation
asyncmongo copied to clipboard

Connections queue support

Open emdagon opened this issue 12 years ago • 2 comments

Instead of raise the TooManyConnections exception when maxconnections is reached, the outgoing requests will be queued until a slot become free.

I faced a problem regarding this issue on a high concurrency scenario, I did some tests and seems to work properly.

emdagon avatar May 14 '12 20:05 emdagon

Isn't this the same as pull request 45, https://github.com/bitly/asyncmongo/pull/45 ?

FlorianLudwig avatar May 27 '12 12:05 FlorianLudwig

@FlorianLudwig It solve the same problem, but the implementation it's a little bit different (In this one, the connection is taken on the releasing event, IMHO it's a little bit efficient)

emdagon avatar May 29 '12 16:05 emdagon