#How to use Sessions with grpc microservice (per request shared store)

1 messages · Page 1 of 1 (latest)

tall saddle
#

Hello, it is possible to use sessions (https://docs.nestjs.com/techniques/session#use-with-fastify) in Microservice with GRPC transport?
We would like to have an object created and life-scoped per request to grpc service. This object should be available/injectable for other services in the application, and its state is the same and shared only within same Request.
Maybe we should try to use this https://docs.nestjs.com/recipes/async-local-storage#nestjs-cls ?

marsh hinge
#

@tall saddle Did you find a solution to address this issue?