Rails Executor: the border between application and framework code
Do you know how Ruby on Rails cleans up caches and resources between requests and background jobs and how it knows when and which code to reload?
Rails Executor is a little-known Rails internal detail a typical application developer will never notice or need to know about. However, if you create gems that call an application’s code via callbacks, that knowledge becomes essential.
As an open-source Ruby gem developer, I’ve encountered a few bugs that were resolved using the Rails Executor. For this reason, knowledge of the Rails Executor is essential for developers creating gems that are calling Rails app code. And you’ll get some interesting knowledge about how Rails works along the way!
A talk from Kaigi on Rails 2023 conference.