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
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
310
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
670
Other Decks in Programming
See All in Programming
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
360
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
150
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.2k
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
170
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.3k
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
600
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
150
Oxlintのカスタムルールの現況
syumai
6
1k
dRuby over BLE
makicamel
2
320
Modding RubyKaigi for Myself
yui_knk
0
900
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
160
OSもどきOS
arkw
0
470
Featured
See All Featured
Designing for Timeless Needs
cassininazir
1
250
エンジニアに許された特別な時間の終わり
watany
107
250k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Fireside Chat
paigeccino
42
3.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Deep Space Network (abreviated)
tonyrice
0
170
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
430
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
600
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!