Adding concurrency control to HTTP APIs

from blog Lawrence Jones, | ↗ original
Recently, I’ve needed to add concurrency protections to several HTTP APIs. One endpoint was for updating a schedule, where incident.io customers would tell us about who was on-call and what hours they worked so we could generate a pay report. It would suck if another user was modifying the same schedule – maybe just to add a single user – and...