<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sue445</author_name>
  <author_url>https://blog.hatena.ne.jp/sue445/</author_url>
  <blog_title>くりにっき</blog_title>
  <blog_url>https://sue445.hatenablog.com/</blog_url>
  <categories>
    <anon>slack</anon>
  </categories>
  <description>最近そういうことを社内で何回か書いたのでメモ 前提 なぜ重複投稿されるか？ 重複実行対策 1. 実行内容を一定時間キャッシュする 2. 排他ロックをする 3. サーバ側での並列処理を捨てる 前提 Slackには特定のイベントが発生した時に任意のwebhookにリクエストを飛ばすことができます。 具体的には下記のような使い方ができます sue445.hatenablog.com しかし普通にやると1回しかemojiを登録してないのにSlackに何回も投稿されて困ることがありました なぜ重複投稿されるか？ 公式ドキュメントを見つけきれてないので推測ですが、そういう仕様な気がしてます。 （Herok…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsue445.hatenablog.com%2Fentry%2F2019%2F10%2F17%2F145405&quot; title=&quot;Slackからのリクエストを処理するwebhookを1回だけ実行したい - くりにっき&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-ak.f.st-hatena.com/images/fotolife/s/sue445/20191017/20191017143638.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-17 14:54:05</published>
  <title>Slackからのリクエストを処理するwebhookを1回だけ実行したい</title>
  <type>rich</type>
  <url>https://sue445.hatenablog.com/entry/2019/10/17/145405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
