© Brady Somerville, Adam Gamble, Cloves Carneiro Jr and Rida Al Barazi 2020
B. Somerville et al.Beginning Rails 6https://doi.org/10.1007/978-1-4842-5716-6_13

13. Active Job

Brady Somerville1 , Adam Gamble2, Cloves Carneiro Jr.3 and Rida Al Barazi4
(1)
Bowling Green, KY, USA
(2)
Gardendale, AL, USA
(3)
Hollywood, FL, USA
(4)
FONTHILL, ON, Canada
 

Web applications often need to perform long-running tasks in response to a request. For example, in the previous chapter, we modified our blog to send emails. While it’s true that sending an email usually only takes a second or so, web developers are often concerned with milliseconds. So what’s the big deal with some requests taking a second or two?

For illustration, imagine going to your local Post Office to drop ...

Get Beginning Rails 6: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.