Background Jobs
Introduction
Background jobs are used when we need to perform tasks that are not part of the standard request response cycle. Why would we ever want to do this? Two reasons:
The first is when we have a scheduled task that we need to regularly occur. For example, every day check various news sources to gather any articles on your favorite topic.
The second case relates more directly to performance. There are times that when the user makes a request, part of the task that needs to be performed takes a long time. We don't want the entire response to have to wait on this one piece, so we send this task to a background job, and then send the user an updated response when the task has resolved.
Resources on Background Jobs
Take a look at the following resouces regarding background jobs:
View Background Jobs on Learn.co and start learning to code for free.