# Faster App Recovery With Bounded Queues

DevFeed: [Faster App Recovery With Bounded Queues](<https://devfeed.tech/articles/faster-app-recovery-with-bounded-queues-15648.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/faster-app-recovery-with-bounded-queues>)

Author: Zachary Anker

Published: 2017-06-21T18:08:07Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Microservice](<https://devfeed.tech/topics/microservice.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [automated](<https://devfeed.tech/tags/automated.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code](<https://devfeed.tech/tags/code.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [http](<https://devfeed.tech/tags/http.md>), [microservice-architecture](<https://devfeed.tech/tags/microservice-architecture.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [outage](<https://devfeed.tech/tags/outage.md>), [queue](<https://devfeed.tech/tags/queue.md>), [request](<https://devfeed.tech/tags/request.md>), [responses](<https://devfeed.tech/tags/responses.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [server](<https://devfeed.tech/tags/server.md>), [test](<https://devfeed.tech/tags/test.md>), [timeout](<https://devfeed.tech/tags/timeout.md>)

## AI overview

This tutorial explains how bounded request queues can help Ruby applications recover after downstream failures. Using NGINX, Puma, client retries, and benchmark tests, it shows how unbounded queues and repeated timeouts can create backlogs and cascading failures, and why rejecting requests when overloaded can reduce the need for restarts.

## Source excerpt

Get your app back up more rapidly using bounded queues