Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidekiq/Active Job style guide announcement #7

merged 1 commit into from Jul 18, 2020
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,77 @@
<!doctype html>
article {
white-space: pre-line;
font-family: Courier;
font-size: 1.1em;
margin: 5% 10%;
article pre {
white-space: pre;
overflow-x: scroll;
margin: 0 0 -1em 0;
padding-top: 1em;
font-size: 1.1em;
background-color: #eee;
article code {
background-color: #eee;
font-family: Courier;
footer {
opacity: 0.1;

<link rel=icon href=/favicon-filipp.ico type=image/x-icon/>

@═╦╣╚╗ <strong><a href=/>A mazing engineer</a></strong>

18-Jul-2020 <strong>Sidekiq/Active Job style guide</strong>

<a href=>Comment on this article</a>

<a href=>The guide on how to painlessly work with Sidekiq and ActiveJob</a> I've been working on for so long is out.

It's based on:
- Sidekiq's wiki
- ActiveJob documentation
- many background jobs related code reviews
- known and rare pitfalls experienced in practice during past years

The publication of this guide is a big achievement for me, the biggest on the open-source front I can think of.

Hope you'll find it useful.
As for me, if the company I've worked for had this guide before starting DelayedJob to Sidekiq migration, we could have avoided many major headaches.
Some guidelines are unique in this guide, you won't find them in any other source.

It's a common belief that ActiveJob is redundant when working with Sidekiq, and bare Sidekiq is preferable.
It's hard to argue with that.
Do not let the very first guidelines to repel you, glance over the rest of the guide.

The guide covers both topics, even Sidekiq part prevails.

Read between the lines and you'll realize the unknown unknowns there are in background job processing.
Yet, still, background job processing keeps surprising as you dive deeper and deeper.

I've barely mentioned monitoring, but it's an essential part.
Think Tetris, but three-dimensional given an extra queue dimension.
Feed your workers in an optimal way.
Otherwise you'll experience saturation, lags, and perceived slowdown.

The guide is not nearly complete.
There's <a href=>a ticket which I used as a todo list</a> for future guidelines.
You can help here, too.

Pull requests, additions to the todo list and any feedback are kindly appreciated.

<a href=>Reddit thread</a>.

<a href=>Comment on this article</a>

The content of this article is licensed under <a href=>CC-BY-SA</a>.
@@ -5,10 +5,17 @@
<description>Adventures and challenges, as written down by Phil Pirozhkov</description>
<pubDate>Sun, 26 Apr 2020 00:00:00 +0000</pubDate>
<lastBuildDate>Sun, 26 Apr 2020 00:00:00 +0000 </lastBuildDate>
<pubDate>Sat, 18 Jul 2020 00:00:00 +0000</pubDate>
<lastBuildDate>Sat, 18 Jul 2020 00:00:00 +0000 </lastBuildDate>
<atom:link href="" rel="self" type="application/rss+xml"/>
<title>Sidekiq/Active Job style guide</title>
<pubDate>Sat, 18 Jul 2020 00:00:00 +0000</pubDate>
<guid isPermaLink="false">94062fad-bfbf-6468-9474-0a21f40b43ea</guid>
<title>Questions to Ask in a Job Interview</title>
@@ -53,6 +53,8 @@
<a href= rel=me></a>

~ $ ls adventures<a class='feed' href=/feed.xml>.feed</a>

18-Jul-2020 <a href=active-job-sidekiq-style-guide.html>active-job-sidekiq-style-guide</a>
26-Apr-2020 <a href=questions-to-ask-in-a-job-interview.html>questions-to-ask-in-a-job-interview</a>
23-Jul-2019 <a href=leaky-constants.html>leaky-constants</a>
30-Jun-2019 <a href=fixing-rspec-subject-stub-cop.html>fixing-rspec-subject-stub-cop</a>