Hello Igniters! I want to implement a feature to support a custom "caller" context in ignite services (see example in ticket description [1]).
Sometimes, when using Ignite services, it becomes necessary to pass custom parameters from the "request source" to the service. This is most commonly used to track the origin of a service call (user id, request id, session id eg see this user question [2]). At the moment, the only way to pass such parameters to a service is by adding argument(s) to all called methods of the service, which makes the code messy and also complicates development and maintenance. I propose letting the user set a custom context for the service proxy and implicitly pass that context to the methods being called. This function should not affect the execution of service methods in any way unless the user has specified a context. An example of using the proposed API [1]. PoC (except thin clients) [3]. WDYT? [1] https://issues.apache.org/jira/browse/IGNITE-15572 [2] https://stackoverflow.com/questions/57459071/apache-ignite-service-grid-service-call-context [3] https://github.com/apache/ignite/pull/9440