<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>この記事で分かること - 同期APIかバッチ（非同期）かは、時間 / 頻度 / 量 / 失敗確率 / UX の5軸で決める - 非同期化には請求書が付いてくる（進捗、監視、冪等性、順序、デバッグ） - 「受け付けました」を即返す 202 パターンの骨格を、Goで動かして確かめる はじめに 「この処理、バッチにしませんか」。 設計の会議で一度は聞くせりふです。 そして、賛成の根拠も反対の根拠も曖昧なまま、声の大きい方に決まりがちなせりふでもあります。 同期で返すか、非同期のバッチに逃がすか。 これは好みではなく、5つの軸で機械的に判断できる種類の問題です。 この記事では判断軸と、非同期化したとき…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Fwhen-to-batch&quot; title=&quot;その処理は同期で返すか、バッチに逃がすか - chamotaroooのブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-25 10:09:10</published>
  <title>その処理は同期で返すか、バッチに逃がすか</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/when-to-batch</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
