competing-consumers

command
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

We have a table containing some entries, for each one we need to lock, do some work, then unlock the entry.

To illustrate a typical distributed solution we make a couple of competing consumers which get a list of entries and try and lock them to perform this work. If one of the works fails the other will take up the slack.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL