Blogs
How to run parallel tests in RSpec on GitLab CI Pipeline and speed up Ruby
GitLab CI allows you to run tests much faster thanks to CI parallelisation feature. You can run parallel jobs across multiple GitLab Runners. In order to do it, you will learn how to split tests in a dynamic way across parallel tasks to ensure the...
Fetching millions of rows from PostgreSQL with Rails
This SQL query might take anything from some milliseconds to a couple of seconds on a regular sized application. But what if you have millions of users, and each of them have millions of posts and each post has lots of data? This is where that sim...
Ruby on Rails Developer Series: Spinning Up a JSON API in Minutes
Welcome to the first of four Ruby on Rails Developer Series. In this series, the goal is to outline how to strengthen your API with Postgres, how to dockerize your project and add security layers to mitigate attacks to your application. In this ar...
Ruby on Whales: Dockerizing Ruby and Rails development
This post is a B-side of my RailsConf 2019 talk “Terraforming legacy Rails applications”. Today I am not going to convince you to switch to Docker for application development (though you can check the RailsConf video for some arguments). My goal i...
Minimum viable example of calling Rust from Ruby without a gem.
For Rubyfmt I'm currently looking at rewritingsignificant sections in Rust, because there's some performance issues. Broadlyspeaking, it turns out that cleaning up a very large Ruby parse tree (e.g. 4000lines) can be slow because of the number of ...