Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
10分でわかる_Observer___Pub_Sub.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuki Watanabe
August 03, 2024
Programming
330
0
Share
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
92
Other Decks in Programming
See All in Programming
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
310
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
3
440
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
180
Nuxt Server Components
wattanx
0
230
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
330
事業会社でのセキュリティ長期インターンについて
masachikaura
0
210
Smarter Angular mit Transformers.js & Prompt API
christianliebel
PRO
1
110
へんな働き方
yusukebe
6
2.9k
モダンOBSプラグイン開発
umireon
0
190
存在論的プログラミング: 時間と存在を記述する
koriym
5
750
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
3
2.7k
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
100
Utilizing Notion as your number one productivity tool
mfonobong
4
280
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
GitHub's CSS Performance
jonrohan
1032
470k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
660
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Test your architecture with Archunit
thirion
1
2.2k
How to Ace a Technical Interview
jacobian
281
24k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
150
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はブローカーによる非同期処理 -