|
|
|
|
|
by reidbuzby
974 days ago
|
|
Hey everyone, I've recently created an open source library on top of grpc-kotlin and 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.htm...) only propagates a context across API boundaries within the same container and does not cross microservice boundaries. 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! |
|