Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
10分でわかる_Observer___Pub_Sub.pdf
Search
Yuki Watanabe
August 03, 2024
Programming
0
300
10分でわかる_Observer___Pub_Sub.pdf
社内勉強会で使用したスライド
ジュニアレベルの輪読会でObserverパターンやPub/Subを解説しました。
Yuki Watanabe
August 03, 2024
Tweet
Share
More Decks by Yuki Watanabe
See All by Yuki Watanabe
資格試験がおすすめ!(初めてのLT会 Vol.14 私のおすすめ! LT会スライド)
yukiwatanabe824
0
83
Other Decks in Programming
See All in Programming
Microservices rules: What good looks like
cer
PRO
0
1.2k
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
38
25k
dotfiles 式年遷宮 令和最新版
masawada
1
750
20 years of Symfony, what's next?
fabpot
2
350
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
200
AIコードレビューがチームの"文脈"を 読めるようになるまで
marutaku
0
350
S3 VectorsとStrands Agentsを利用したAgentic RAGシステムの構築
tosuri13
6
300
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
260
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
120
ゲームの物理 剛体編
fadis
0
330
TypeScript 5.9 で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
1.3k
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
9
1.1k
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
527
40k
Practical Orchestrator
shlominoach
190
11k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
970
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Writing Fast Ruby
sferik
630
62k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
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はブローカーによる非同期処理 -