Chapter 7. Using Task Queues
When you open a URL, usually you get a text document in response that usually contains marked up text with HTML (and CSS, JavaScript), which in turn is either generated on the fly or is fetched from the file system as is. In any case, the time it takes for such a computational activity is pretty small, in the order of a few hundred milliseconds. But there are things that need and take more time than just milliseconds and can't be appropriately done within such time frame.
For more computationally expensive tasks, it's best if they are executed in the background. And that's where the task queues comes in where you queue computationally expensive tasks and process them later at your convenience in the background or in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access