ashwanthkumar / suuchi

सूचि - Toolkit to build Distributed Data Systems
https://ashwanthkumar.github.io/suuchi/
53 stars 12 forks source link

Service must know if they're replication request or original request #76

Closed ashwanthkumar closed 7 years ago

ashwanthkumar commented 7 years ago

When a RPC service is routed using ReplicationHandler, the service must have an ability to know if it's the replication invocation or the original invocation. We can use Context to store and retrieve that information.

This is especially useful when we're going to send a metric for that replication request, you don't want to end up doing double counts of that.