Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- KEVISS
- jpa
- 인덱스
- AOP
- cache
- 생성자 주입
- select_type
- docker
- Test
- DI
- StringBuilder
- VUE
- 조합
- 열 속성
- Spring
- SQL
- lambda
- 필드 주입
- stream
- java
- 테스트 코드
- hashcode
- Exception
- MSA
- equals
- 재정의
- static
- redis
- DDL
- jwt
Archives
- Today
- Total
목록분산락 (1)
백엔드 개발자 블로그

동시성 문제를 해결하기 위해 synchronized, Locking(비관적 락), Redis 분산락을 시도한 과정을 작성해봅니다. 문제 상황 모임 인원에 제한이 있는 그룹에 member가 참여하는 코드입니다. @RequiredArgsConstructor @Transactional(readOnly = true) @Service public class ParticipateService { private final MemberFindService memberFindService; private final GroupFindService groupFindService; @Transactional public void participate(Long groupId, Long memberId) { Group group..
DB
2024. 3. 18. 22:16