© Ecky Putrady 2018
Ecky PutradyPractical Web Development with Haskellhttps://doi.org/10.1007/978-1-4842-3739-7_6

6. Queues

Ecky Putrady1 
(1)
Singapore, Singapore, Singapore
 

In this chapter, we will integrate our application with RabbitMQ.​1 RabbitMQ is a popular queueing system . One common use case of RabbitMQ is for running a background task. A background task is a task that need not be done within a request-response cycle. Having a background task to handle a noncritical process helps make your application more responsive.

But wait, Haskell supports multithreading. Why don’t we just spawn a new thread to run the task and call it a day? Well, there are multiple reasons why an external queueing system is more preferable than just spawning a new ...

Get Practical Web Development with Haskell: Master the Essential Skills to Build Fast and Scalable Web Applications 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.