Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One common way queues can be used to give an async like feel to your applications and flatten out spikes of activity without having to add hardware.

So, for example, you would have a CRUD that takes requests, and when there is background work to be done, places a message on the queue, and immediately returns to the user. This frees up the server for more requests. Meanwhile in the background, a worker process chugs through the queue and does its work. During long spikes it will take longer to get through the queue, but your end users will not have disruption of service.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: