Skip to content
/ coupon Public

본 서비스는 한정된 수량의 쿠폰을 먼저 신청한 사용자에게 지급할 수 있는 애플리케이션입니다.

Notifications You must be signed in to change notification settings

pie2457/coupon

Repository files navigation

이벤트 선착순 쿠폰 시스템

Background

선착순 쿠폰 이벤트는 한정된 수량의 쿠폰을 먼저 신청한 사용자에게 제공하는 이벤트입니다.

Architecture

비동기 쿠폰 발급 요청 처리 구조

image

Tech Stack

Infra
Aws EC2, Aws RDS, Aws Elastic Cache

Server
Java 17, Spring Boot 3.1, Spring Mvc, JPA, QueryDsl

Database
Mysql, Redis, H2

Monitoring
Aws Cloud Watch, Spring Actuator, Promethous, Grafana

Etc
Locust, Gradle, Docker

Main Feature

쿠폰 발급 검증

  • 발급 기한
  • 발급 수량
  • 중복 발급

쿠폰 발급 수량 관리

  • Redis Set기반 재고 관리

비동기 쿠폰 발급

  • Redis List (발급 Queue)
  • Queue Polling Scheduler

Result

server spec

  • EC2
    • coupon-api, coupon-consumer
    • t2.micro
  • Mysql
    • cache.t2.micro
  • Redis
    • cache.t2.micro

Load Test

Metric

image image

About

본 서비스는 한정된 수량의 쿠폰을 먼저 신청한 사용자에게 지급할 수 있는 애플리케이션입니다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published