News for hackers. Stuff that matters.
Re:Distributed locks with Redis by Acconut on Sunday December 06, 2015 @02:38PM (#10686274)
Splitting a resource into multiple parts and embedding in into a single message in order to avoid external storage and the need for locking is an interesting approach, but sadly not an option for me. Nevertheless, I appreciate your response.
Re:Distributed locks with Redis by craigjb on Sunday December 06, 2015 @02:43PM (#10686292)
Yah, I understand it's not always an option.

If the data size is limiting though, you can embed a Redis key or Hadoop FS reference into the message, rather than breaking your message system with massive data.

Then, you can have the storage system listen for completion messages, and cleanup appropriately. Or, like we did, just shove out old data LRU style. This way some history is always available for debugging.