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
TakashiAsanuma
March 02, 2018
Programming
0
97
Pub/Subメッセージングのテスト(LT版)
TakashiAsanuma
March 02, 2018
Tweet
Share
More Decks by TakashiAsanuma
See All by TakashiAsanuma
Supabase CLIのある開発日常
takashiasanuma
3
320
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
81
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
190
RubyによるPub/Sub messaging - パブリッククラウドのバックエンドシステム事例 /Public Cloud backend system
takashiasanuma
0
140
RubyでPub/Sub messaging-Multi Process-Daemonizes-Application
takashiasanuma
1
12k
Scalable Applications with Pub/Sub Messaging
takashiasanuma
0
120
IDCクラウドのバックエンド
takashiasanuma
0
140
CMやるよって言われてからのインフラチューニング
takashiasanuma
0
220
今更ながらElasticSearch + Kibana導入で ハマってしまったこと
takashiasanuma
0
710
Other Decks in Programming
See All in Programming
PC-6001でPSG曲を鳴らすまでを全部NetBSD上の Makefile に押し込んでみた / osc2025hiroshima
tsutsui
0
190
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
180
Deno Tunnel を使ってみた話
kamekyame
0
260
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
300
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
490
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
130
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
220
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
850
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
190
ゆくKotlin くるRust
exoego
1
160
Grafana:建立系統全知視角的捷徑
blueswen
0
240
Cap'n Webについて
yusukebe
0
150
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
120
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Darren the Foodie - Storyboard
khoart
PRO
0
2k
We Are The Robots
honzajavorek
0
120
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
52
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.7k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
720
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
71
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. 以上です。 ありがとうございました。