2 ms·
Rails 7.1 ships with a handy `perform_all_later` method that lets you enqueue multiple jobs to be executed at once, reducing the round-trip to the job backend l
by software_writer 3y ago
Rails 7.1 ships with a handy `perform_all_later` method that lets you enqueue multiple jobs to be executed at once, reducing the round-trip to the job backend like Redis or the database.
Although it's currently supported only by Sidekiq and GoodJob (as far as I know), it provides a nice abstraction to enqueue multiple jobs at once. This post explores this method including the behind-the-scenes implementation.