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
- 스터디
- 자격증
- Redis
- CodeCommit
- Docker
- orm
- goorm
- s3
- jvm
- aws
- jpa
- Cache
- 오블완
- spring
- serverless
- 자바
- backenddeveloper
- 개발자
- nosql
- 티스토리챌린지
- data
- Spring Boot
- 기본형
- bootcamp
- MSA
- goorm x kakao
- QueryDSL
- backend
- mapping
- java
Archives
- Today
- Total
목록2026/02/01 (1)
gony-dev 님의 블로그
공유 자원 접근 시 일어나는 Race Condition?
😭 Situation프로젝트 리팩터링 작업 중, 댓글 생성 기능을 검토하다가 쿼리문에 문제 발생 우려가 제기되었다. 댓글 생성 기능은 댓글과 대댓글의 생성 로직이 달라 API를 분리하였다.댓글 객체에는 댓글 그룹을 지정하기 위해 commentGroup 필드를 생성하였다.@Entity@Getter@NoArgsConstructor(access = AccessLevel.PROTECTED)public class Comment extends BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name ..
TroubleShooting
2026. 2. 1. 14:39
