> 5. After processing the request, save the response to the persistent store before releasing the lock.
Save only if the operation succeeds. It's meaningless to cache a failure, subsequent retries will result in failure from the cache.
Frankly you guys are overengineering the whole thing. We use the concept only for network outages i.e. it is only on timeout that we want to guard against fultilling duplicate request for the same operation.
> The insult was so great that throughout its subsequent history, Bulgaria fought exclusively against Russia in every world war, and in the intervals between them, it diligently undermined Russia, all the while not forgetting to shout about “eternal brotherly friendship”.
You cannot expect eternal gratitude esp. when Russian Empire is constantly trying to influence its "vasals" using local puppets. Now is about time for you to fcuk off I would say -- we don't want to have anything in common with you people.
Save only if the operation succeeds. It's meaningless to cache a failure, subsequent retries will result in failure from the cache.
Frankly you guys are overengineering the whole thing. We use the concept only for network outages i.e. it is only on timeout that we want to guard against fultilling duplicate request for the same operation.