<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bengo4</author_name>
  <author_url>https://blog.hatena.ne.jp/bengo4/</author_url>
  <blog_title>弁護士ドットコム株式会社 Creators’ blog</blog_title>
  <blog_url>https://creators.bengo4.com/</blog_url>
  <categories>
    <anon>リーガルブレイン開発</anon>
  </categories>
  <description>複数台の NGINX でレートリミットを共有するときに何が要るか NGINX 単体でリクエスト数を制限したいなら、標準の limit_req で足ります。 共有メモリにカウンタを持ち、ワーカープロセス間で状態を共有できるからです。 ロードバランサの背後に NGINX を複数台並べた瞬間、この前提が崩れます。 各ノードの共有メモリは互いに独立しています。 そのため、ノード A で 50 リクエスト、ノード B で 50 リクエストをそれぞれ許してしまい、利用者から見た合計は 100 リクエストになります。 台数を増やすほど、この漏れは大きくなります。 これを防ぐには、ノード間で状態を共有するカウ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcreators.bengo4.com%2Fentry%2F2026%2F07%2F17%2F090949&quot; title=&quot;Redis の拡張ロードも OpenResty も不要な分散レートリミット NGINX モジュール - 弁護士ドットコム株式会社 Creators’ 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-ak.f.st-hatena.com/images/fotolife/b/bengo4/20260717/20260717090800.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-17 09:09:49</published>
  <title>Redis の拡張ロードも OpenResty も不要な分散レートリミット NGINX モジュール</title>
  <type>rich</type>
  <url>https://creators.bengo4.com/entry/2026/07/17/090949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
