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
Now, that we will have gRPC-web powered driver, we can make use of manual session creation (that is not available in REST API). This means that we want to reuse and share only one session throughout the entire evitaLab for each connection. This way don't necessarily create new session for every call to the database server, and we will be able to support WARMING_UP catalogs that support only single parallel session.
In the ConnectionService, there will be simple cache for opened session for each connection. The service will manage obtaining a new session (if non exist for a connection using the driver API) and passing correct session to the used driver.
The service should also provide way of closing the session so that we can hook to browser tab closing and close all active sessions.
There will still be a problem with GraphQL API which doesn't support custom sessions. This will be resolved by merging the GraphQL Client into the driver as well as extending GQL API to support custom session IDs.
The text was updated successfully, but these errors were encountered:
Implemented in the EvitaSessionProvider. This class provides methods that provide sessions for executing operations against evitaDB. Every session request should be executed through these methods to make use of the session sharing and so on.
Now, that we will have gRPC-web powered driver, we can make use of manual session creation (that is not available in REST API). This means that we want to reuse and share only one session throughout the entire evitaLab for each connection. This way don't necessarily create new session for every call to the database server, and we will be able to support
WARMING_UP
catalogs that support only single parallel session.In the
ConnectionService
, there will be simple cache for opened session for each connection. The service will manage obtaining a new session (if non exist for a connection using the driver API) and passing correct session to the used driver.The service should also provide way of closing the session so that we can hook to browser tab closing and close all active sessions.
There will still be a problem with GraphQL API which doesn't support custom sessions. This will be resolved by merging the GraphQL Client into the driver as well as extending GQL API to support custom session IDs.
The text was updated successfully, but these errors were encountered: