<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ag6nqtsp4" -->

---
title: 잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정
description: Kakao's messaging system (KIMS) experienced report loss due to race conditions when vendor delivery reports arrived before message records were committed to...
canonical: https://daily.dev/posts/ag6nqtsp4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정 | daily.dev
og:description: Kakao's messaging system (KIMS) experienced report loss due to race conditions when vendor delivery reports arrived before message records were committed to...
og:url: https://daily.dev/posts/ag6nqtsp4
og:image: https://api.daily.dev/og/posts/AG6nQTsp4.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정

**[Korean Devs](https://daily.dev/sources/koreandevs)** · [@seyoungcho](https://daily.dev/seyoungcho) · 0 upvotes · 0 comments

## Summary

Kakao's messaging system (KIMS) experienced report loss due to race conditions when vendor delivery reports arrived before message records were committed to the database. The team resolved this by progressively refactoring: first reducing transaction scope by moving billing events to async listeners, then removing unnecessary transactions entirely, and finally implementing the Transactional Outbox Pattern with Single Writer Principle. This eliminated contention between real-time and batch processing paths, trading immediate consistency for eventual consistency while achieving exactly-once semantics for billing events.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tech.kakao.com/posts/810>

## Similar posts on daily.dev

- [Saved the Order, Lost the Event: Why You Need the Outbox Pattern](https://daily.dev/posts/saved-the-order-lost-the-event-why-you-need-the-outbox-pattern-thxdod4hv) · The T-Shaped Dev · 21 upvotes · 0 comments
- [Solving Message Ordering from First Principles](https://daily.dev/posts/solving-message-ordering-from-first-principles-8emo1yble) · Milan Jovanović · 5 upvotes · 0 comments
- [How to Implement the Outbox Pattern in Distributed Systems](https://daily.dev/posts/how-to-implement-the-outbox-pattern-in-distributed-systems-0xhg3kran) · C\# Corner · 4 upvotes · 0 comments
- [Reliable Message Delivery: the Transactional Outbox Pattern With Okapi](https://daily.dev/posts/reliable-message-delivery-the-transactional-outbox-pattern-with-okapi-dgj2qqz0f) · SoftwareMill · 27 upvotes · 1 comments

---

Tags: [#database](https://daily.dev/tags/database), [#distributed-systems](https://daily.dev/tags/distributed-systems)

[View this post on daily.dev](https://daily.dev/posts/ag6nqtsp4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/ag6nqtsp4","headline":"잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정","text":"Shared: 잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정","url":"https://daily.dev/posts/ag6nqtsp4","datePublished":"2026-02-10T23:09:05.809Z","dateModified":"2026-02-10T23:09:48.757Z","author":{"@type":"Person","name":"SeyoungCho","url":"https://daily.dev/seyoungcho","image":"https://media.daily.dev/image/upload/s---QniJFEK--/f_auto/v1724901542/avatars/avatar_O3ucZSadxc0iLADSOH3rX","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":9190}},"image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/Lu1BIBdcu"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/koreandevs","name":"Korean Devs"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Korean Devs","item":"https://daily.dev/squads/koreandevs"},{"@type":"ListItem","position":3,"name":"잃어버린 리포트를 찾아서: 카카오 메시징 시스템의 경쟁 조건 문제와 안티 패턴 제거 과정"}]}
```

