December 2023
Intermediate to advanced
464 pages
12h 35m
English
Identify requests from clients uniquely so you can ignore duplicate requests when client retries.
Clients send requests to servers but might not get a response. It’s impossible for clients to know if the response was lost or the server crashed before processing the request. To make sure its request is processed, the client has to resend the request.
If a server had already processed the request and crashed after that, servers will get duplicate requests from the client when it retries.
Identify a client uniquely by assigning a unique ID to each client. Before sending any requests, the client registers itself with the server.
class ConsistentCoreClient... private ...