Skip to content

heli-os/kotlin-springboot-distributed-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin SpringBoot DistributedLock

  • Write/Update에 대한 동시성 처리 이슈를 어떻게 해결할 수 있을까?
  • DBMS 레벨에서 Lock을 관리할 수도 있지만 I/O 자체의 비용이 매우 큼. 이에 애플리케이션 레벨 Lock을 이용하게끔 구성
  • 예제의 LockSynchronizer 구현체는 Redis 이지만 변경 가능한 구조로 설계하였음
  • distributedLock Annotation 에 대한 Lock Aspect 구현
  • 실제 운용 시 http request time-out, 분산락 획득 실패 시 retry 등 고려 필요

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages