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
Swarrot - A library to consume them all
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Olivier Dolbeau
April 07, 2014
Programming
2.1k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swarrot - A library to consume them all
Lightninh talk about Swarrot given at sfLive Paris 2014.
Olivier Dolbeau
April 07, 2014
More Decks by Olivier Dolbeau
See All by Olivier Dolbeau
Throw new \Exception(); Oui, mais laquelle ?
odolbeau
1
320
Jane & Webby
odolbeau
0
500
Translating a monolingual application
odolbeau
2
690
DX: Developer eXperience
odolbeau
1
130
DX: Developer eXperience
odolbeau
1
580
EasyAdminBundle introduction
odolbeau
0
240
REX API Platform
odolbeau
0
1.4k
Features flags at BlaBlaCar
odolbeau
5
1.2k
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
2
680
Other Decks in Programming
See All in Programming
Performance Engineering for Everyone
elenatanasoiu
0
240
Agentic UI
manfredsteyer
PRO
0
210
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
140
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
260
Contextとはなにか
chiroruxx
1
380
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
150
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
810
The NotImplementedError Problem in Ruby
koic
1
990
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.7k
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
220
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
230
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
170
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
Navigating Weather and Climate Data
rabernat
0
260
The World Runs on Bad Software
bkeepers
PRO
72
12k
How to train your dragon (web standard)
notwaldorf
97
6.7k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
570
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
630
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
790
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
180
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Transcript
Swarrot A library to consume them all
To consume what?? Messages
From where ? Any broker !
Yeah, it’s about asynchronous tasks! Because asynchronous is good u
know?
There is 2 actors • Producer • Consumer
Swarrot What it really is.
An open source library • License: MIT • https://github.com/swarrot/swarrot •
Started 1 month ago
How it works Just listen
Create a message provider
Create a processor
OK, you’re done! Consume!
WAIT!!! That’s not all!
It’s all about decoration!
Some processors And what they do!
ExceptionCatcherProcessor You just see it! Useful in prod env only.
InstantRetryProcessor Something wrong happened? OK, try again! Useful for API
calls.
SignalHandlerProcessor You don’t want to stop your consumer immediately if
they are working! A must have!
Others • AckProcessor • MaxExecutionTimeProcessor • MaxMessagesProcessor • RetryProcessor •
...
Who started this? Me! Web architect @odolbeau
But I’m not alone! • Rémy Lemeunier (remyLemeunier) • Grégoire
Pineau (lyrixx) • Willy Morin (kaiska) • Yohan Giarelli (yohang) THANK YOU!
Feel free to contribute!
One more thing!
It’s already used in production!
Thank you!