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 |
Tags
- 조합
- lambda
- KEVISS
- DDL
- 바이너리 카운팅
- 필드 주입
- 열 속성
- equals
- SQL
- hashcode
- DI
- 테스트 코드
- stream
- MSA
- StringBuilder
- AOP
- Spring
- cache
- 인덱스
- java
- jwt
- Test
- redis
- jpa
- 재정의
- docker
- select_type
- static
- VUE
- 생성자 주입
Archives
- Today
- Total
목록synchronized (1)
백엔드 개발자 블로그
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/UbIiN/btsFUe4EpJ9/ZWbvAxF9AkC784HiFiCv1K/img.png)
동시성 문제를 해결하기 위해 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