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
10分でわかる_Observer___Pub_Sub.pdf
Search
Yuki Watanabe
August 03, 2024
Programming
390
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
10分でわかる_Observer___Pub_Sub.pdf
社内勉強会で使用したスライド
ジュニアレベルの輪読会でObserverパターンやPub/Subを解説しました。
Yuki Watanabe
August 03, 2024
More Decks by Yuki Watanabe
See All by Yuki Watanabe
資格試験がおすすめ!(初めてのLT会 Vol.14 私のおすすめ! LT会スライド)
yukiwatanabe824
0
99
Other Decks in Programming
See All in Programming
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2.1k
The Rails Doctrine Decade
koic
2
460
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
120
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
300
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
370
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
250
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
390
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
470
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
270
SREの越境 / SRE Collaboration
y0hgi
2
290
wkhtmltopdfの次どうするか問題2026
willnet
2
1.8k
Verilogで学ぶCPU自作入門.pdf
uyuki234
7
3.9k
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
710
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
500
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Transcript
10分でわかる Observer & Pub/Sub 渡邊有喜
目的 Observerパターン学ぶ Pub/Sub学ぶ
Observerとは 「一対多」の依存関係を定義したもの
Pub/Subとは オブザーバーパターンを拡張したもの 「多対多」の依存関係を定義
Observerとは 引用:オブジェクト指向における再利用のためのデザインパターン』
いつ使うのか 一つのオブジェクトの変更から無数のオブ ジェクトに処理を派生させたいとき
Observerは何が嬉しい - オブジェクト間の矛盾が生まれづらい - オブジェクト間で実装知らなくてOK - ブロードキャスト通信のサポート
Observerとは 引用:Wikipedia
Observerとは 引用:オブジェクト指向における再利用のためのデザインパターン』
つよい人は考えた… Subjectも複数使えたら便利じゃね ↓ Pub/Sub誕生 ※想像です
Pub/Subとは オブザーバーパターンを拡張したもの 「多対多」の依存関係を定義
Pub/Subとは 引用:https://laboratory.kiyono-co.jp/69/gcp/
Pub/SubとObserverの違い - 「ブローカー」(中間テーブル)の存在 - Pub/Subはブローカーによる非同期処理 -