Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling a remote service which is down freezes the caller #60

Open
debbabi opened this issue Aug 25, 2015 · 0 comments
Open

Calling a remote service which is down freezes the caller #60

debbabi opened this issue Aug 25, 2015 · 0 comments

Comments

@debbabi
Copy link
Member

debbabi commented Aug 25, 2015

When a remote peer is gone, a time interval is needed to detect its departure. In between, other peers could call its services as the proxies are always present. In this case, the caller will remains blocked until the a timeout is expired (normally this is a big interval of time).

To overcome this problem, all RPC calls should wait two messages from the target peer :
(1) an ack that the request is received by the target peer
(2) the answer of the target peer.

This should be handled transparently so that developers have not to worry about this details.
When the caller does not receive the first message (1) before a short time_out_1 interval, it directly exists with an exception. However, If the first message (1) is received before time_out_1, the caller remains blocked until it receives the answer (2) before a time_out_2.

Values of time_out_1 and time_out_2 should be given by the user as a startup configuration for each node (default value are used if no user-specifc value is given), as it depends on the network overlays and average time of processing the caller requests.

@debbabi debbabi added this to the 1.1.2 milestone Aug 25, 2015
@debbabi debbabi modified the milestones: 1.3.0, 1.1.2 Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant