[Mochi-devel] Server as client

Philip Davis philip.e.davis at rutgers.edu
Thu Dec 5 11:03:35 CST 2019


Hello,

Apologies if these have been asked before and I missed it:

1. Is there any obstacle to a process being both an origin and a target for Mercury RPC calls?

2. If not, is it legal for the same process to be both the orgin and target of the *same* RPC call? The use case I’m picturing is implmenting some sort of structured, distributed object store that uses keyval or similar as a backing store. It might be convenient to colocate these two services in the same process group, and distribute the backing store throughout the process group. As such, it seems feasible that the object store would need to access the backing storage administered by its own process, so I’m wondering if that case needs to be handled outside Mercury, or if it can be implemented as if the backing store was not process-local.

3. If the answer to the previous is yes, then are there any optimizations in Mercury to recognize and handle this case (i.e. the case where the origin and target are the same process)?

Thanks,
Philip


More information about the mochi-devel mailing list