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
95
Pub/Subメッセージングのテスト(LT版)
TakashiAsanuma
March 02, 2018
Tweet
Share
More Decks by TakashiAsanuma
See All by TakashiAsanuma
Supabase CLIのある開発日常
takashiasanuma
3
250
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
61
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
170
RubyによるPub/Sub messaging - パブリッククラウドのバックエンドシステム事例 /Public Cloud backend system
takashiasanuma
0
130
RubyでPub/Sub messaging-Multi Process-Daemonizes-Application
takashiasanuma
1
12k
Scalable Applications with Pub/Sub Messaging
takashiasanuma
0
110
IDCクラウドのバックエンド
takashiasanuma
0
130
CMやるよって言われてからのインフラチューニング
takashiasanuma
0
200
今更ながらElasticSearch + Kibana導入で ハマってしまったこと
takashiasanuma
0
700
Other Decks in Programming
See All in Programming
すべてのコンテキストを、 ユーザー価値に変える
applism118
2
1.1k
Goで作る、開発・CI環境
sin392
0
190
NPOでのDevinの活用
codeforeveryone
0
680
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
380
GoのGenericsによるslice操作との付き合い方
syumai
3
710
地方に住むエンジニアの残酷な現実とキャリア論
ichimichi
5
1.5k
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
330
技術同人誌をMCP Serverにしてみた
74th
1
530
Benchmark
sysong
0
280
Team operations that are not burdened by SRE
kazatohiei
1
290
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
240
Go1.25からのGOMAXPROCS
kuro_kurorrr
1
850
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Optimizing for Happiness
mojombo
379
70k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Practical Orchestrator
shlominoach
188
11k
For a Future-Friendly Web
brad_frost
179
9.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
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. 以上です。 ありがとうございました。