Tutorials

Durable Sidekiq jobs: how to maximize reliability of Sidekiq and Redis
Sidekiq is one of the most popular (if not the most popular one) background job framework in Ruby world, which is not a big surprise: it allows to achieve a decent throughput, is stable and well-maintained, has some great features (including also ...


Breaking apart inheritable mattr_accessors in HTTParty
We all know that Ruby provides you with sharp knives. Used with caution they give you great power, but misuse them and you will be remembered at your job long after.I like some of those, from outside they look like magic, but inside they often are...



ciao checks HTTP(S) URL endpoints for a HTTP status code and sends a notification on status change via E-Mail or Webhooks.
ciao checks HTTP(S) URL endpoints for a HTTP status code (or errors on the lower TCP stack) and sends a notification on status change via E-Mail or Webhooks.
It uses Cron syntax to schedule the checks and comes along with a Web UI and a RESTfull ...

How to Integrate Elasticsearch in a Rails Web App
Information storing and searching are two of the most crucial aspects for any web application. They affect the overall success of your project. The same is true when you aim to develop a perfect Rails web app.A web product can contain tons of data...


Introducing `Rocketman`, a gem to help you do Pub/Sub code in Pure Ruby. No Rails needed!
Rocketman is a gem that introduces Pub-Sub mechanism within Ruby code.As with all Pub-Sub mechanism, this greatly decouples your upstream producer and downstream consumer, allowing for scalability, and easier refactor when you decide to move Pub-S...

How to deal with complex Factory Bot associations in RSpec tests
What’s the best way to handle tests that involve complex setup data? You want to test object A but it needs database records for objects B, C and D first.I’ll describe how I address this issue but first let me point out why complex setup data is a...