Description
What about allowing services as parameters to thrift methods? This would be useful for returning interim results, logging and probably other use cases.
At first I thought, nah that can't work, but I thought about it more and it seems maybe it could. Though I know little of Thrift's internals.
When the service parameter was serialized only its connection information would be sent. Additional data may need to be provided to the service (true host name etc.) That would be fine with me.
It seems like both sides should have most of the features they need for this. It would probably be a requirement that the service was started, bound etc before being passed a a parameter.
Attachments
Issue Links
- relates to
-
THRIFT-3593 Enable server-side to issue requests to clients on the same connection (push notifications)
- Open