Queue Jobs Directly
Learn about invoking background jobs using Active Job in Rails, emphasizing simple and efficient practices for effective implementation.
We'll cover the following...
Once we know how our job backend works and when to use a background job, how do we write one and how do we invoke it? Let’s talk about invocation first.
Using Active Job for backend
Active Job was added to Rails in recent years as a single abstraction over background jobs. This provides a way for library authors to interact with background jobs without having to know about the underlying backend.
Active Job does a great job at this, but because we aren’t writing library code, it ...