StaffCoder
Spring Boot
Spring BootSpring Boot 4.1Java 25
12 modules · 48 challengesSign up
Module 11 of 12 · 4 challenges

Spring Boot Transactions and Concurrency

Learn how Spring keeps data correct under load: marking transaction boundaries, rolling back cleanly, locking rows optimistically or pessimistically, and making a retried request apply only once.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Seat Hold Reservation Lock

Sign up to unlock
—No data yethard
About this challenge

This problem covers holding a seat for a while, letting the hold lapse on its own, and making sure a crowd produces only one winner.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Wallet Top-Up Retry Guard

Sign up to unlock
—No data yethard
About this challenge

This problem covers making a repeated top-up request credit the wallet only once

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Ticket Counter Race Guard

Sign up to unlock
—No data yethard
About this challenge

This problem covers claiming tickets while other writers change the same pool, and starting over when someone got there first.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Interbank Fund Settlement Ledger

STAR
Solving it completes the module
—No data yethard
About this challenge

This problem covers moving money between two accounts so that either both sides happen or neither does.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.