Separating Concurrency Control Code with AOP
Spring AOP pulls distributed-lock code out of business logic. A DistributedLock aspect modeled on @Transactional, with a SpEL key evaluator like Spring Cache.
3 posts

Spring AOP pulls distributed-lock code out of business logic. A DistributedLock aspect modeled on @Transactional, with a SpEL key evaluator like Spring Cache.

Lettuce is not limited to spin locks. How Spring RedisLockRegistry's Pub/Sub lock mode builds an efficient distributed lock without Redisson.

1,000 people request 100 items at once. How a single UPDATE gives one to exactly 100 of them, instead of the locks usually proposed for a first-come event.