본문 바로가기

gony-dev 님의 블로그

검색하기
gony-dev 님의 블로그
프로필사진 minarinamu

  • 분류 전체보기 (78) N
    • Spring (8)
      • JPA (7)
    • Querydsl (6)
    • TestCoding (1)
    • AWS (31)
    • Caching (6)
    • TroubleShooting (4) N
    • Kafka (2)
    • Goorm x Kakao Project (6)
      • 1회차 프로젝트 (6)
    • JVM (7)
    • JAVA (7)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바