Skip to content

Commit 4b5e283

Browse files
committed
Update SideProject Post " 쿠폰 시스템 개선기 "
1 parent ec2b284 commit 4b5e283

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

_posts/2025-06-03-SpringBoot-Coupon-System-Redisson.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public class CustomSpringELParser {
402402
public class CouponIssueService {
403403
// ... 생략 ...
404404

405-
@DistributedLock(key = "'couponIssue:' + #command.couponId() + ':' + #command.userId()", waitTime = 5, leaseTime = 3)
405+
@DistributedLock(key = "'couponIssue:' + #command.couponId() + ':' + #command.userId()", waitTime = 5, leaseTime = 30)
406406
@Transactional // DB 트랜잭션과 함께 사용
407407
public CouponIssueResult issue(final CouponIssueCommand command) {
408408
// ... 순수한 쿠폰 발급 비즈니스 로직 ...
@@ -491,6 +491,21 @@ Kafka Consumer 서버에서는 API 서버에서 전송한 `CouponIssueMessage`
491491

492492
부하 테스트 도구로는 K6를 사용했고, 모니터링 도구로는 Prometheus와 Grafana를 활용하여 주요 지표를 추려서 테스트를 진행했습니다.
493493

494+
> 모니터링 도구에 대한 내용은 아래 링크와 같이 공식 문서를 참고했습니다.
495+
496+
* [공식문서 - Prometheus](https://prometheus.io/docs/introduction/overview/)
497+
498+
* [공식문서 - prometheus 지표수집](https://prometheus.github.io/client_java/getting-started/metric-types/#counter)
499+
500+
* [공식문서 - Grafana](https://grafana.com/docs/grafana/latest/)
501+
502+
* [grafana - datasource](https://grafana.com/docs/grafana/latest/datasources/)
503+
504+
* [grafana - dashboard](https://grafana.com/docs/grafana/latest/dashboards/)
505+
506+
* [grafana - alerting](https://grafana.com/docs/grafana/latest/alerting/#grafana-alerting)
507+
508+
494509
### Before: SETNX 방식
495510

496511
> Grafana - Coupon Api Server

0 commit comments

Comments
 (0)