Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
httputil.ReverseProxy でもリトライがしたい
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
TOGASHI Tomoki
May 19, 2022
Programming
840
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
httputil.ReverseProxy でもリトライがしたい
TOGASHI Tomoki
May 19, 2022
Other Decks in Programming
See All in Programming
AWSに止められる覚悟してますか?
morizo_1984
2
510
Java 27新機能 / Java 27 new features
kishida
2
200
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
910
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
iOSDC2026登壇資料.pdf
riofujimon
0
210
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
370
mrbgem 三角測量 開発
ogom
0
200
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
150
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
150
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
120
Heart of Swift Concurrency
koher
0
1.2k
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
The agentic SEO stack - context over prompts
schlessera
0
960
Being A Developer After 40
akosma
91
590k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
First, design no harm
axbom
PRO
2
1.3k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Fireside Chat
paigeccino
43
4.1k
Designing for Timeless Needs
cassininazir
1
520
Mobile First: as difficult as doing things right
swwweet
225
10k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
300
Transcript
httputil.ReverseProxy でも リトライがしたい 2022/05/19 | golang.tokyo #32 TOGASHI Tomoki
ABOUT ME 富樫 知基 (TOGASHI Tomoki) バックエンドエンジニア @ ARIGATOBANK Go,
Kubernetes, Google Cloud 🐈, 🐈⬛, ⌨️ @clomie
go-retryabletransport https://github.com/toga4/go-retryabletransport
リトライする http.RoundTripper
ライブラリ作成の動機
動機 たまに起きる接続エラー ↓ リトライしたい httputil.ReverseProxy
動機 http.RoundTripper で実装が必要 実装のプラクティスを集約したい リトライトリガーの定義 バックオフ問題 net/http/httputil.ReverseProxy でリトライしたい
使いかた
使いかた
使いかた Backoff 設定
使いかた 親の Transport
使いかた リトライトリガー(エラー)
使いかた リトライトリガー(レスポンス)
使いかた
Backoff
Backoff インターフェースのみ、実装を提供しない 代わりに既存の Backoff モジュールのアダプタを提供 github.com/googleapis/gax-go/v2 github.com/lestrrat-go/backoff/v2
github.com/lestrrat-go/backoff/v2 指数バックオフ
github.com/lestrrat-go/backoff/v2 定数バックオフ
go-retryabletransport https://github.com/toga4/go-retryabletransport フィードバックお待ちしています