<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anizozina</author_name>
  <author_url>https://blog.hatena.ne.jp/anizozina/</author_url>
  <blog_title>ねぎ嫌い</blog_title>
  <blog_url>https://anizozina.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>動機 Google Admin SDKを使って遊んでる時にふと気になって読んだので残しておく。 調査の経過はZennのScrapにしてある。 GoogleApisライブラリのExponential Backoffを追いたい 結論 googleapisが依存しているgaxios(Axiosのラッパー)の中で実装されている。 retry.tsでリトライに関する判定等を行なっており、内部で再施行回数によって指数的に待ち時間を挿入している。 実際にbackoffを計算しているところを抜粋すると以下 // Formula: retryDelay + ((2^c - 1 / 2) * 1000) cons…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanizozina.hateblo.jp%2Fentry%2F2024%2F04%2F24%2F085703&quot; title=&quot;GoogleApisライブラリに実装されているExponential Backoff - ねぎ嫌い&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>2024-04-24 08:57:03</published>
  <title>GoogleApisライブラリに実装されているExponential Backoff</title>
  <type>rich</type>
  <url>https://anizozina.hateblo.jp/entry/2024/04/24/085703</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
