Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Sidekiq under the hood
Search
Anton Davydov
September 26, 2015
Programming
0
420
Sidekiq under the hood
Anton Davydov
September 26, 2015
Tweet
Share
More Decks by Anton Davydov
See All by Anton Davydov
How to make a technical decision
davydovanton
0
110
МГТУ
davydovanton
0
75
Events. Events. Events! - krk.rb
davydovanton
0
150
Events. Events. Events!
davydovanton
0
810
Event Sourcing RubySPBConf 2k18
davydovanton
1
200
Architecture of hanami applications
davydovanton
1
7.6k
Hanami Architecture
davydovanton
2
300
viewing ruby blossom kaigi2017
davydovanton
0
730
viewing ruby blossom rdrc2017
davydovanton
2
220
Other Decks in Programming
See All in Programming
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
580
AIコーディングエージェント(Manus)
kondai24
0
210
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
410
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.3k
Patterns of Patterns
denyspoltorak
0
320
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
190
gunshi
kazupon
1
120
AI Agent Dojo #4: watsonx Orchestrate ADK体験
oniak3ibm
PRO
0
110
Navigating Dependency Injection with Metro
l2hyunwoo
1
180
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
160
Deno Tunnel を使ってみた話
kamekyame
0
240
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
280
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
73
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
330
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
120
Balancing Empowerment & Direction
lara
5
820
Reality Check: Gamification 10 Years Later
codingconduct
0
1.9k
The Curious Case for Waylosing
cassininazir
0
190
The Language of Interfaces
destraynor
162
25k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
110
AI: The stuff that nobody shows you
jnunemaker
PRO
1
17
The Cost Of JavaScript in 2023
addyosmani
55
9.4k
Transcript
Hello!
github: davydovanton twitter: anton_davydov Anton Davydov
RCNTEC developer sidekiq commiter ruby doc / rails / crystal
OSS one love <3
@rubyunderhood curator https://twitter.com/rubyunderhood
@moscowrb http://moscow-rb.org
You Beer
You Beer Me
I (we) <3 sidekiq!
Simple, efficient background processing for Ruby.
Sidekiq server New thread
I (we) <3 actors!
Manager actor
Fetcher actors Manager actor
Redis Fetcher actors Manager actor
Redis Fetcher actors Processor actors Manager actor
Redis Fetcher actors Processor actors Manager actor Workers
MyWorker.perform_async
irb > MyWorker.perform_async Redis queue Serialization prams
Processor actors Fetcher actors Redis Manager actor Workers
Processor actors Manager actor Workers Fetcher actors Redis
Processor actors Manager actor Workers Fetcher actors Redis
Workers Processor actors Manager actor Fetcher actors Redis
LongWorker Redis
Redis Serialization prams LongWorker After 8 seconds
middleware
Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add YourMiddleware, options end
end
def call(worker, msg, queue) # code before call you worker
yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
def call(worker, msg, queue) # code before call you worker
yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
def call(worker, msg, queue) # code before call you worker
yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
def call(worker, msg, queue) # code before call you worker
yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
Sidekiq-statistic github.com/davydovanton/sidekiq-statistic
Improved display of statistics for your sidekiq workers and jobs.
None
None
None
None
Worker name Last job status Runtime Start time
Jobs per day charts for each worker Last job status
for each worker Passed and failed jobs count Average job time Max and min jobs time Total jobs time Last job time
I <3 feedback!
Anton Davydov github.com/davydovanton twitter.com/anton_davydov Thank you!