<aside> 📌 회의 안건
user_id
concert_id
user_id
concert_id
user_count
POST 대기열에 사용자 등록
결제, 자리선정에서 받을 수 있는 인원 받아오기
⇒ 자리선정팀한테 전달
자리선정이 남는 인원 수?를 우리에게 넘겨주면 그만큼 보내줌 - Post - 티켓팅에서 만들고 자리선정에서 사용하는 API
우리가 시간 정해서 계속 물어봄(자리선정) @Scheduled - Get - 자리선정에서 만들고 티켓팅에서 사용하는 API
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class SeatStatusChecker {
// 5초마다 자리를 확인하는 작업
**@Scheduled(fixedRate = 5000)**
public void checkAvailableSeats() {
// 자리선정 API에 남은 인원을 물어보는 로직
System.out.println("Checking available seats...");
// 실제 자리 확인 로직을 여기에 구현 (예: API 호출)
// 예: 남은 좌석 수 체크 후 로그 출력
}
}
POST 결제, 자기선정에 유저 넘기기
DELETE 대기열 나가기