Blogs

How I write and maintain type signatures in my Rails app with Sorbet | Connor Shea
Sorbet is a gradual type checker for Ruby, developed by Stripe. It was teased for about a year before release, and after getting enthralled by TypeScript back in early 2019, I eagerly awaited the public release of Sorbet as well. It came out in Ju...

Adding support for cross-cluster associations to Rails 7 | The GitHub Blog
Ever since we made the leap at GitHub to upgrade off our fork of Rails and worked hard to stay up to date with the latest releases, we’ve consistently looked for ways to improve the Rails framework upstream. We do this in many ways – running GitHu...



Hanami architecture explained | Hanami Mastery - a knowledge base to hanami framework
First of all, let's clarify the term software architecture. Martin flower already wrote a dozen of posts about it, but in general, the architecture isn't really about MVC, Service objects, used ORM or things like that. MVC is not architecture - le...


Multiple databases in a single query in your Rails apps
Imagine that you are building a separate application for your e-commerce system dedicated to business intelligence. In other words, you want to calculate some stats for the orders. So you are going to create some new model, like OrderStat(s), and ...



Speeding up Rails 7 Controller Actions using ActiveRecord load_async
The queries are executed synchronously, which mostly isn’t a huge concern. But, as the database grows larger in size, the response time of requests is getting longer. A significant part of the query time is often just I/O waits. Since these two qu...