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
Pub/Subメッセージングのテスト(LT版)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
TakashiAsanuma
March 02, 2018
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pub/Subメッセージングのテスト(LT版)
TakashiAsanuma
March 02, 2018
More Decks by TakashiAsanuma
See All by TakashiAsanuma
Skills間の連携も関数のようにしたら快適だった話
takashiasanuma
1
1.6k
Supabase CLIのある開発日常
takashiasanuma
3
370
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
100
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
210
RubyによるPub/Sub messaging - パブリッククラウドのバックエンドシステム事例 /Public Cloud backend system
takashiasanuma
0
160
RubyでPub/Sub messaging-Multi Process-Daemonizes-Application
takashiasanuma
1
12k
Scalable Applications with Pub/Sub Messaging
takashiasanuma
0
130
IDCクラウドのバックエンド
takashiasanuma
0
160
CMやるよって言われてからのインフラチューニング
takashiasanuma
0
240
Other Decks in Programming
See All in Programming
ふつうのFeature Flag実践入門
irof
8
4.1k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
290
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
180
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
710
OSもどきOS
arkw
0
570
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
150
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.3k
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.3k
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
120
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
570
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
360
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
310
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Rails Girls Zürich Keynote
gr2m
96
14k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
480
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
530
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Making the Leap to Tech Lead
cromwellryan
135
9.9k
BBQ
matthewcrist
89
10k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Marketing to machines
jonoalderson
1
5.5k
Transcript
IDC Frontier Inc. All rights reserved. 表参道.rb #32 Pub/Subメッセージングのテスト 株式会社IDCフロンティア
技術開発本部 UX開発部 浅沼 敬 2018年03⽉1⽇
2 IDC Frontier Inc. All rights reserved. ⾃⼰紹介 # LIFULL
- HOMEʼS 開発リーダー - HOMEʼS 流通ユニット⻑ - HOMEʼS インフラ担当 # ZIGExN - アルバイトEX 開発担当 - 全社インフラ担当 - ベトナム⼦会社 PM # IDCフロンティア(現在) - IDCFクラウドのバックエンド開発 Twitter: @rmaccho Speaker Deck: TakashiAsanuma Github: TakashiAsanuma
3 IDC Frontier Inc. All rights reserved. IDCFクラウドのサービス
4 IDC Frontier Inc. All rights reserved. IDCFクラウドのPub/Sub UI API
MQ Ctrl Worker DB Cloud Stack MQを介して、JSONのメッセージ をPub/Subしています
5 IDC Frontier Inc. All rights reserved. テスト戦略 UI システムテスト
各コンポーネント別 振る舞いテスト Unit Test
6 IDC Frontier Inc. All rights reserved. 振る舞いテスト(Ctrl) Before: Message
Publish MQ Ctrl Result Message Message Templates Expect Message Expect Diff
7 IDC Frontier Inc. All rights reserved. テストコード配置 Spec/ behavior/
#ジョブごとの振る舞いテスト shared_examples/ #共有コードの集まり support/ #MQ, JSON関連処理のHelper Message_templates/ templates/ #ジョブごとのメッセージテンプレート message_helper/ builder/ #ジョブごとのメッセージを⽣成
8 IDC Frontier Inc. All rights reserved. 良いところ・つらいところ 良いところ -
振る舞い配下の処理に⼿を⼊れやすい - メッセージを定義してBDD的に進めやすい つらいところ - JSON関連の独⾃Utilが・・・ - メッセージをログから取得したりするパースが・・・ - 関連ミドルウェア等が多いと、そのモック⽤意が・・・
9 IDC Frontier Inc. All rights reserved. 以上です。 ありがとうございました。