Proposal to have the DiscoveryService to do bidirectional sync
venilnoronha opened this issue · 1 comments
venilnoronha commented
Currently, the DiscoveryService
allows only unidirectional sync. One of the challenges with this approach is that most agents implementing this interface need to be publicly available.
hamlet/api/resourcediscovery/v1alpha1/resource_discovery.proto
Lines 88 to 95 in 9a69c19
The proposal is to change the interface in a way that service discovery works seamlessly even when only one of the agents is publicly available while the rest may not.
- rpc EstablishStream (stream StreamRequest) returns (stream StreamResponse);
+ rpc EstablishPublishStream (stream StreamRequest) returns (stream StreamResponse);
+ rpc EstablishSubscribeStream (stream StreamResponse) returns (stream StreamRequest);
/cc @sergiopozoh
sergiopozoh commented
Pending #25