Skip to content

Commit

Permalink
Merge pull request #97 from ggumiggumi/refactor/performance/stage-2
Browse files Browse the repository at this point in the history
refactor: 선착순 응모 2단계 중복 검사 로직 제거
  • Loading branch information
alexization authored Oct 31, 2024
2 parents 88a466b + 6be7e32 commit 228fab6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/com/uplus/ggumi/service/ApplyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public String applyVer1(ApplyRequestDto requestDto) {
* */
public String applyVer2(ApplyRequestDto requestDto) {

String phoneNumber = requestDto.getPhoneNumber();

/* 중복 확인 */
if (Boolean.TRUE.equals(redisTemplate.opsForSet().isMember(APPLY, phoneNumber))) {
return "FAILED";
}

redisTemplate.opsForSet().add(APPLY, phoneNumber);

try {
/* ApplyRequestDto 객체를 JSON으로 변환하여 Redis 채널에 발행하며
* Pub/Sub 채널로 메시지를 발행한다. */
Expand Down

0 comments on commit 228fab6

Please sign in to comment.