Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Swarrot - A library to consume them all
Olivier Dolbeau
April 07, 2014
Programming
2
1.8k
Swarrot - A library to consume them all
Lightninh talk about Swarrot given at sfLive Paris 2014.
Olivier Dolbeau
April 07, 2014
Tweet
Share
More Decks by Olivier Dolbeau
See All by Olivier Dolbeau
Jane & Webby
odolbeau
0
230
Translating a monolingual application
odolbeau
2
330
DX: Developer eXperience
odolbeau
0
43
DX: Developer eXperience
odolbeau
0
320
EasyAdminBundle introduction
odolbeau
0
100
REX API Platform
odolbeau
0
820
Features flags at BlaBlaCar
odolbeau
4
750
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
1
330
Be gentle with your prod!
odolbeau
1
480
Other Decks in Programming
See All in Programming
The State of Kotlin | FOSDEM 2023
prof18
1
110
Glance App Widgetでウィジェットを作ろう / MoT TechTalk #15
mot_techtalk
0
150
Amazon QuickSightのアップデート -re:Invent 2022の復習&2022年ハイライト-
shogo452
0
250
2023年にクル(かもしれない)通信ミドルウェア技術(仮)
s_hosoai
0
220
Milestoner
bkuhlmann
1
250
domain層のモジュール化 / MoT TechTalk #15
mot_techtalk
0
150
(新米)エンジニアリングマネージャーのしごと #RSGT2023
murabayashi
9
5.9k
Excelの助けを借りて楽にシナリオを作ろう
rpa_niiyama
0
340
Most Valuable Bug(?) ~インシデント未遂から得た学び~
tatsumiakahori
0
150
Becoming an Android Librarian (Android World Wide 2023 Jan)
skydoves
2
230
Spring BootとKubernetesで実現する今どきのDevOps入門
xblood
0
400
Zynq MP SoC で楽しむエッジコンピューティング ~RTLプログラミングのススメ~
ryuz88
0
400
Featured
See All Featured
Embracing the Ebb and Flow
colly
75
3.6k
Building an army of robots
kneath
301
40k
Imperfection Machines: The Place of Print at Facebook
scottboms
254
12k
Why Our Code Smells
bkeepers
PRO
326
55k
KATA
mclloyd
12
9.7k
Into the Great Unknown - MozCon
thekraken
2
300
4 Signs Your Business is Dying
shpigford
171
20k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
13
5.4k
StorybookのUI Testing Handbookを読んだ
zakiyama
8
3.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
Stop Working from a Prison Cell
hatefulcrawdad
263
18k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
24
4.6k
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!