Don’t make it a race: The four common concurrency control patterns

You shouldn’t jump into any implementation without first deciding which high-level concurrency control pattern is right for the problem. Jack Shirazi offers some help in this talk.
Developers have a tendency to focus on low-level implementations to handle concurrency, locks, lock-free algorithms, compare-and-set etc.
But you shouldn’t jump into any implementation without first deciding which high-level concurrency control pattern is right for the problem.
To help you make the right decision, Jack Shirazi covers the four common concurrency control patterns that let you safely update shared mutable state: pessimistic locking, optimistic transactions, queue to a single thread, and partitioning the data.
dgerh
trhtr
ertzz