Tutorials

How we scaled async workload processing at GitLab.com using Sidekiq | GitLab
Sidekiq was a great tool for async processing until it couldn't keep up. Here's how we made it scale........GitLab is a Ruby-on-Rails application that processes a lot of data. Much of this processing can be done asynchronously, and one of the solu...



Advanced Active Record: Using Subqueries in Rails
Active Record provides a great balance between the ability to perform simple queries simply, and also the ability to access the raw SQL sometimes required to get our jobs done. In this article, we will see a number of real-life examples of busines...

Make use of your Github Actions minutes for security checking Rails PRs
If you're using Github to host your Rails projects, you might be interested in a quick and easy way to add security checks to your PRs, via Github Actions.Github Actions, if you're not familiar with them, are like little CI tasks that can run on c...



Postgres Indexes for ActiveRecord Join Tables in Rails Apps
Join tables are a common citizen in Ruby on Rails apps. Their use case is to provide many to many relation between database models. Adding correct Postgres indexes on join tables is not obvious. I’ve noticed that some tutorials, Stack Overflow pos...

Building GitHub-style Hovercards with Stimulus and HTML-over-the-wire
Somewhere along the way toward our current JavaScript hellscape, programmers decided that HTML was over. We’re done with it.The emergence of tools like React shifted programmers away from writing HTML, instead writing JSX, a fancier tag-based mark...

How to Create Events in Google Calendar from Ruby On Rails Application?
In many cases, we need to create events in a calendar app from web applications. For example, create an appointment with Doctors or schedule service with plumbers.Google Calendar is the most used app for scheduling and it’s very popular among busi...