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
Zaqar Messaging for Microservices and IoT
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
vkmc
April 27, 2016
Technology
0
150
Zaqar Messaging for Microservices and IoT
OpenStack Summit Austin 2016
vkmc
April 27, 2016
Tweet
Share
More Decks by vkmc
See All by vkmc
Teaching padawans to chop wood and carry water in their open source journey - OpenInfra Summit 2022
vkmc
0
41
Your ReadWriteMany (RWX) Storage in k8s with Manila CSI - OpenInfraSummit 2022
vkmc
0
93
Configuring Manila services for High Availability - OpenInfra Summit 2022
vkmc
0
110
Evitá (tantos) bugs en tu código: Zuul CI al rescate
vkmc
0
190
Un dia trabajando en infra
vkmc
0
140
Easy multi-tenant k8s RWX storage with cloud provisioner OpenStack and Manila CSI
vkmc
0
160
OpenShift libre de humo
vkmc
0
130
CephFS on OpenStack Manila
vkmc
0
370
OpenShift in a Nutshell - LinuxChixAR
vkmc
0
410
Other Decks in Technology
See All in Technology
【Ubie】AIを活用した広告アセット「爆速」生成事例 | AI_Ops_Community_Vol.2
yoshiki_0316
1
110
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
2k
Why Organizations Fail: ノーベル経済学賞「国家はなぜ衰退するのか」から考えるアジャイル組織論
kawaguti
PRO
1
100
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
470
SREじゃなかった僕らがenablingを通じて「SRE実践者」になるまでのリアル / SRE Kaigi 2026
aeonpeople
6
2.5k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
量子クラウドサービスの裏側 〜Deep Dive into OQTOPUS〜
oqtopus
0
130
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
220
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.8k
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
130
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.2k
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
230
GitHub's CSS Performance
jonrohan
1032
470k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
180
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
77
Leo the Paperboy
mayatellez
4
1.4k
The Cult of Friendly URLs
andyhume
79
6.8k
Transcript
ZAQAR MESSAGING FOR MICROSERVICES AND IoT Ryan Brown Victoria Martinez
de la Cruz April 27th, 2016
WHAT IS ZAQAR?
3 TL;DR Messaging and Notifications for OpenStack To produce an
OpenStack messaging service that affords a variety of distributed application patterns in an efficient, scalable and highly-available manner, and to create and maintain associated Python libraries and documentation. Mission statement
4 Main goal ...and in OpenStack itself!* It aims to
connect applications running on the cloud... *for certain scenarios… don’t get too excited
5 What Zaqar is not - It’s not a replacement
RabbitMQ or QPID - It’s not a queue service - It’s not an email service
6 Multitenant Main features Component based Messaging patterns
7 Notifications Main features At-least-once delivery guarantee Horizontally scalable
8 Messaging for the cloud Self-healing applications Intercloud communication Data
processing Some use cases
9 Zaqar architecture Client 1 Client 2 Client 3 Client
N Transport Protocol API Storage
10 Storage backends - Redis - Ephemeral by default -
High-throughput - In-memory - MongoDB - HA - Persistent - Disk-backed
11 Storage MongoDB SQLAlchemy Redis Transport WSGI Juno Kilo Zaqar
architecture Storage backends and transmission mechanisms supported over time Liberty Storage MongoDB SQLAlchemy (mgmt only) Redis Transport WSGI Websocket Msgpack Mitaka Storage MongoDB SQLAlchemy (mgmt only) Redis Transport WSGI Websocket (beta) Storage MongoDB SQLAlchemy (mgmt only) Redis Transport WSGI Websocket
ZAQAR’S FUTURE
13 Notifications Within OpenStack - Polling - Between services -
To users - Not a replacement for oslo.messaging - Standardize on message format - oslo.versionedobjects
14 Dead letter queue - A place for failed or
undeliverable messages - Planned for Newton
15 Subscription Confirmation - Confirm with webhook recipient that subscription
is valid
MESSAGES LIFECYCLE
17 Work Queue Sender - Send job - Listen on
finished queue Worker - Listen on job queue - Receive job Sender Zaqar Worker {“job”: 123} {“job”: 123}
18 Work Queue Sender - Send job - Listen on
finished queue Worker - Listen on job queue - Receive job - Claim message Sender Zaqar Worker Claim job 123
19 Work Queue Sender - Send job - Listen on
finished queue Worker - Listen on job queue - Receive job - Claim message - Delete message Sender Zaqar Worker Delete job 123
20 Expiration and Lifetimes - Time-To-Live settings - Subscriptions -
Claims - Messages - Stale data can be worse than no data
MESSAGE PATTERNS
22 Client Notifications Websockets, email, and webhooks - Web browser
notifications - Horizon! - Email for people and legacy systems - Webhooks for cross-service collaboration
23 Messaging for Services Shares lots with work queueing -
Push or pull - Long-lived messages mean systems can go offline without losing commands
24 Stack CREATE Instance CREATE Heat Notifications Integrate Heat with
more workflows Actions Register w/ load balancer Add to inventory system Register metric metadata Zaqar event Listener Can have many listeners
25 Using Heat Notifications In environment.yml event_sinks: - type: zaqar-queue
target: myqueue ttl: 1200
26 Stack CREATE Create some stuff Heat Hooks Wait before/after
resource actions Actions Manual verification Legacy systems Hook event Finish extra work Wait for external action Continue CREATE
ZAQAR FOR IoT
28 Signed URLs Narrow, specific credentials - Per action, per
queue - Write-only or read-only - TTLs too!
29 Sensor data Many, many writers - Short TTL -
High volume - Missed messages are fine
30 Example IoT Application Climate control on campus - Multiple
buildings - Control systems in every office - Company directive to “go green”
31 Mobile app Zaqar Server Climate Control Thermostat Web interface
Websocket connection HTTP API connection Commands Air Conditioner 1 Send metrics Receive commands Air Conditioner 2
32 Mobile app Zaqar Server Changes Thermostat Web interface Set
temp to 22C Air Conditioner 1 Air Conditioner 2 Notifications
33 Mobile app Zaqar Server Changes Thermostat Web interface Air
Conditioner 1 Air Conditioner 2 23.4C 24C
Q&A @ryan_sb @vkmc