You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Fossa stores any database change in the client. This functionality will mostly be used by our Conductor to store Session data. However, this could potentially lead to issues. What happens if multiple instances are writing at once
The idea behind storing the instance is so that Fossa.collection will switch to the collection inside the last database provided to Fossa. Making sure that all writes (and potentially reads) use the same client.
Another approach is only store the initial connection to . The question is then does it blow up the connection pool and create new connections for each instance returned with the callback. Logic dictates otherwise.
In any case, switching between both solutions is easy, as we would not call fossa,collection but the client.collection returned from the callback of fossa,connect
The text was updated successfully, but these errors were encountered:
Currently Fossa stores any database change in the client. This functionality will mostly be used by our Conductor to store Session data. However, this could potentially lead to issues. What happens if multiple instances are writing at once
The idea behind storing the instance is so that
Fossa.collection
will switch to the collection inside the last database provided toFossa
. Making sure that all writes (and potentially reads) use the same client.Another approach is only store the initial connection to . The question is then does it blow up the connection pool and create new connections for each instance returned with the callback. Logic dictates otherwise.
In any case, switching between both solutions is easy, as we would not call
fossa,collection
but theclient.collection
returned from the callback offossa,connect
The text was updated successfully, but these errors were encountered: