FleetDB should definitely be able to handle many concurrent
connections without error or performance degradation. The first thing
I'd be sure to check is that the client is reading the complete
response to its first query before it sends a second one (i.e. not
trying to pipeline requests). If the client is behaving correctly in
that respect (or you are only trying to issue one query per open/close
block, let me know and I will try to reproduce with a stripped down
version of your setup.
- Mark
As a quick sanity check, could you try moving
var db = new fleetdb.Database();
into the app.get('/...') block, right above db.open(...)? It seems
like otherwise all concurrent connections would be sharing the same db
object, though I'm not familiar enough with the implementation to know
for what that means internally.
- Mark