<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Distributed-System on Gukin Han</title>
    <link>https://gukin.dev/tags/distributed-system/</link>
    <description>Recent content in Distributed-System on Gukin Han</description>
    <generator>Hugo</generator>
    <language>ko-kr</language>
    <lastBuildDate>Fri, 25 Jul 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://gukin.dev/tags/distributed-system/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>멱등성 키(Idempotency Key)의 이해와 기업 사례 정리</title>
      <link>https://gukin.dev/posts/idempotency-key-enterprise-cases/</link>
      <pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://gukin.dev/posts/idempotency-key-enterprise-cases/</guid>
      <description>&lt;h2 id=&#34;배경&#34;&gt;배경&lt;/h2&gt;
&lt;p&gt;멱등성(idempotency)은 단순히 &amp;ldquo;두 번 호출해도 한 번만 처리된다(Exactly-Once)&amp;ldquo;를 벗어나 시스템에 큰 이점을 제공한다.&lt;/p&gt;
&lt;p&gt;우리 서비스에는 급여계산을 위한 근무시간을 산출할 때, 반복적으로 수행되어도 괜찮게 설계되어 있다. 반복적으로 요청이 들어왔을 때 결괏값이 addUp 하는 게 아니라 refresh 된다.&lt;/p&gt;
&lt;p&gt;휴가계산도 동일하게 적용된다. 회사의 연차규정과 직원의 입사일에 따라 연차가 계산되는데 새로운 요구사항이 전달되어 수정하게 되었을때 계산결과가 잘못되어도 올바르게 계산되는 로직으로 수정해서 실행시키면 덮어씌워지게 된다. 물론 돈과 관련된 일이라 항상 조심하고 테스트를 잘 작성해야 한다.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
