<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_nakata_codmon</author_name>
  <author_url>https://blog.hatena.ne.jp/y_nakata_codmon/</author_url>
  <blog_title>コドモン Product Team Blog</blog_title>
  <blog_url>https://tech.codmon.com/</blog_url>
  <categories>
    <anon>DDD</anon>
    <anon>Kotlin</anon>
  </categories>
  <description>こんにちは、プロダクト開発部の中田です。 今回はドメイン駆動設計をもとに実装する際に、個人的によく悩む課題について、対応方法を調べたので共有します。 はじめに 複数の集約をまたぐ整合性が必要となった例 整合性の実現方法の選択肢 案1. モデルを見直して複数の集約をまたぐ更新を不要にする 案2. そのまま1つのユースケースで複数の集約を更新する [同期 &amp; 結果整合] 案3. ユースケース単位のトランザクションにする [同期 &amp; トランザクション整合] 案4. ドメインイベントを契機に別の集約を事後更新する [非同期 &amp; 結果整合] とりあえずの現実解、だがしかし ドメインイベントを用いた非同期…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.codmon.com%2Fentry%2F2025%2F07%2F29%2F150657&quot; title=&quot;複数の集約を更新するユースケースで結果整合性を実現する方法を検討しました - コドモン Product Team Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/158780024/1655103548928840</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-29 15:06:57</published>
  <title>複数の集約を更新するユースケースで結果整合性を実現する方法を検討しました</title>
  <type>rich</type>
  <url>https://tech.codmon.com/entry/2025/07/29/150657</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
