Web servers should focus on serving users as quickly as possible. Any non-trivial work that could slow down your user’s experience should be done asynchronously outside of the web process. Worker queues are commonly used to accomplish this goal.
Full article