~/talk

Concurrency Control in REST APIs with Spring Framework

TalkinPolishat 4Developers 2021 · 2021-05-24..05-27· [web-platform, security]
slides:none on file

Modeling a REST API that implements optimistic locking to handle concurrent access to shared resources, using Java Persistence API features and Spring Framework for implementation. The talk covers which HTTP request/response headers and status codes to use for optimistic concurrency control, what Spring provides versus what developers must implement, and demonstrates it through a live coding session.

AI-written summary · about

  1. 0:00Introduction
  2. 3:34Concurrency problem scenario
  3. 7:26Optimistic vs pessimistic locking
  4. 10:20Adding version attribute
  5. 13:57Handling conflicts with 409
  6. 19:56Conditional requests with ETags
  7. 25:55ETags in Spring
  8. 30:48Testing conditional requests
  9. 35:14Backward compatibility
  10. 37:04Enforcing with 428
  11. 39:57Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.