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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
カツオ、ご期待ください
suneo3476
0
120
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.4k
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
280
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
110
SONY CISC-NEWS NWS-1750 + NWB-225 フレームバッファの NetBSD/news68k ドライバ実装 / OSC2026Hiroshima
tsutsui
0
160
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
250
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
5k
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
260
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
9.2k
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
280
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
270
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
350
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
250
Designing for Timeless Needs
cassininazir
1
510
Technical Leadership for Architectural Decision Making
baasie
3
580
How to build a perfect <img>
jonoalderson
1
6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
560
Heart Work Chapter 1 - Part 1
lfama
PRO
10
36k
The Invisible Side of Design
smashingmag
301
52k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Game over? The fight for quality and originality in the time of robots
wayneb77
1
290
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
66k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
250
Abbi's Birthday
coloredviolet
4
10k
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はブローカーによる非同期処理 -