I've recently created an open source library on top of grpc-java that allows you to propagate a context across microservice boundaries throughout an entire request lifetime. The existing io.grpc.Context <https://grpc.github.io/grpc-java/javadoc/io/grpc/Context.html> only propagates a context across API boundaries within the same container and does not cross microservice boundaries unless you pass the information explicitly yourself.
It's called KonigKontext, check it out here: https://github.com/konigsoftware/konig-kontext! Example use cases include: - Propagating security principals, or user credentials and identifiers throughout an entire request lifetime across all of your microservices. - Propogating distributed tracing information. Set a request trace id upon receiving a request and later access that id in any downstream microservice. However, Konig Kontext is built to support any type of context value, so it can be extended to fit any specific use cases as well. Let me know what you think! -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2e2d0976-8d45-4cab-aa4d-a0f632671ff9n%40googlegroups.com.
