f-lab-edu / f-lab-edu/spring-reservation-core

IdempotencyService 구현

Open
#8 0 comments 0 reactions 1 assignee View on GitHub

@xxx-sj is already working on this.

Since Dec 6, 2025.

area:idempotency step:1-core
Dominant language
Java
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

IdempotencyService – executeWithIdempotency 구현

📌 Summary

Idempotency-Key로 비즈니스 로직을 한 번만 실행하도록 관리하는 서비스를 구현한다.


🧩 Tasks

  • executeWithIdempotency(key, callback) 형태 메서드 작성
  • 기존 COMPLETED 키 → 저장된 응답 반환
  • 없는 키 → PENDING 생성 후 비즈니스 로직 실행, COMPLETED 저장
  • 동시 요청 처리 전략 검토

🔍 Notes

  • responseBody는 String(JSON)로 저장

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.