Best Practices for Request Header Forwarding in Microservices
Hey folks are there any best practices for request header forwarding? The context is a microservice architecture and there are a few standard headers set by the edge proxy which all services should forward when making a call to another service. My immediate ideas are:
1. Building a runtime dependency called
RequestProvider
RequestProvider
and making it an optional dependency in case the caller is not an HTTP server but e.g. a Kafka consumer. 2. Read the request from the fiber runtime's current context just like in the HTTP middleware and figure out how to handle the case when it's not present (e.g. the caller does not use the HTTP server from Effect).