Lightninh talk about Swarrot given at sfLive Paris 2014.
SwarrotA library to consume them all
View Slide
To consume what??Messages
From where ?Any broker !
Yeah, it’s aboutasynchronous tasks!Because asynchronous is good u know?
There is 2 actors● Producer● Consumer
SwarrotWhat it really is.
An open source library● License: MIT● https://github.com/swarrot/swarrot● Started 1 month ago
How it worksJust listen
Create a message provider
Create a processor
OK, you’re done! Consume!
WAIT!!!That’s not all!
It’s all about decoration!
Some processorsAnd what they do!
ExceptionCatcherProcessorYou just see it!Useful in prod env only.
InstantRetryProcessorSomething wrong happened? OK, try again!Useful for API calls.
SignalHandlerProcessorYou don’t want to stop your consumerimmediately 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!