RPC, RMI and CORBA

RPC, RMI and CORBA RPC, RMI and CORBA

12.07.2015 Views

Duplicate Requests• Since client may retransmit requests, server mayreceive duplicates• e.g., server may be slow processing a request, exceedsclient timeout, client retries• with requestIds globally unique, can discard duplicates

Lost Replies• If a server has already sent a reply when it receivesa duplicate, it may need to resend• cause may be lost reply message• resending may require recomputing original request• if operation is x=7 this poses no problem• if operation is x+=1 recomputing the request will lead toincorrect values of x• recomputation is only allowable when the operationsare idempotent• an idempotent operation is one that can be performed repeatedlywith the same effect as if it had been performed exactly once• Servers with only idempotent operations canrecompute duplicates

Lost Replies• If a server has already sent a reply when it receivesa duplicate, it may need to resend• cause may be lost reply message• resending may require recomputing original request• if operation is x=7 this poses no problem• if operation is x+=1 recomputing the request will lead toincorrect values of x• recomputation is only allowable when the operationsare idempotent• an idempotent operation is one that can be performed repeatedlywith the same effect as if it had been performed exactly once• Servers with only idempotent operations canrecompute duplicates

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!