public EnterDTO.Result enter(EnterDTO.Command command) {
...
String queueKey = "queue:concertSchedule:" + command.getConcertScheduleId();
String counterKey = queueKey + ":counter";
...
...
return EnterDTO.Result.builder()
.token(user.getId().toString()) // 이런식으로...
.needToChoose(false)
.rank(rank)
.pollingIntervalMs(pollingIntervalMs)
.build();
}
→ 이 방식은 대기열을 우회할 위험이 존재한다.
누군가 티켓팅 관련 API를 알고 있다면, 대기열을 우회할 위험이 있고, 다른 사람의 ID로 위조가 가능하다.