<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>makotan</author_name>
  <author_url>https://blog.hatena.ne.jp/makotan/</author_url>
  <blog_title>makotanのブログ</blog_title>
  <blog_url>https://makotan.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>‎REST APIで困るのが複数のAPIを呼び出したときのロールバック処理 何がどう困るかというと、API-1,API-2,API-3って更新処理をするAPIがあって、API-3でエラーが出たときにAPI-1とAPI-2のロールバック処理は行えない！ これまではどうやってたか API-1とAPI-2の呼び出し前の状態を保持して、API-3がエラーになるとAPI-1とAPI-2を呼び出し前に更新する この問題は、呼び出し前の状態を意識的に保持する必要があるのと、最初の更新方法(追加・更新・削除)によってその逆を実行する必要がある しかもAPI-1とAPI-2の呼び出しが両方成功しないとロールバッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmakotan.hatenadiary.jp%2Fentry%2F20170305%2Fp1&quot; title=&quot; ‎REST APIでロールバック的な処理を考えてみた - makotanのブログ&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>2017-03-05 00:00:00</published>
  <title> ‎REST APIでロールバック的な処理を考えてみた</title>
  <type>rich</type>
  <url>https://makotan.hatenadiary.jp/entry/20170305/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
