Build your own concurrency control in Sidekiq
Implement Redis-based locking mechanism Pushing a lot of jobs into Redis queue(s) for Sidekiq to process is very common in […]
Implement Redis-based locking mechanism Pushing a lot of jobs into Redis queue(s) for Sidekiq to process is very common in […]
RSpec installation RSpec is available as a gem, but it’s a meta-gem, which means that it depends on other gems. […]
Bootstrapping a Rails application can be a tedious task. It requires several steps, such as generating a Rails skeleton, creating […]
Simplified when we talk about the request that is coming to the Rails application, we usually consider two elements of […]
You can easily take down your database with not properly designed transaction When you wrap the code inside the transaction […]
Routes engine is the core part of every Rails application. Thanks to the config/routes.rb file, we can easily define the […]
This article is a quick tip for anyone working with APIs in a Rails application and parsing the data without […]
Advantages of using design patterns An appropriate approach to using design patterns brings a lot of essential benefits to the […]
The count method Ruby implements its own count method, which counts the number of elements in the given array. However, ActiveRecord::Relation class implements its own implementation […]
Fixing performance issues Problem: you are parsing a large CSV file, and it takes a lot of time to process […]