ContextInterceptor: sessionId between two servers
I'm trying to use the Context Server Interceptor from the Docs: https://vertx.io/docs/vertx-grpc-netty/java/#_grpc_server I'm surprised that the context seems to be shared among all calls. I was under the impression from the example (using a sessionId), that the context is not shared between completely unrelated calls. How is this supposed to work?
Version
4.5.11
Reproducer
- https://github.com/andrm/vertxcontext
Steps to reproduce
- Run the server
- Run the client
- The client makes two calls, one to the context-intercepting server instance, the second to a plain grpc vertx service, no interceptor
- The second call should not have the sessionId
I suggest removing ContextInterceptor entirely and suggest Vertx 5 and ContextStorag instead. CI is too complicated to work with. I can und work with Contexts in verticles, but grpc-netty seems to be different entirely. At the least it needs to be documented better.
I do agree with you, actually grpc-netty is deprecated in vertx 5