Is an ALB 504 always an application timeout?
No. Target connection problems and network delays can also prevent a response before the load balancer timeout.
AWS ALB · HTTP 504
Trace ALB 504 to target connection or response delay. Inspect target response time, application queues, dependency latency, and idle-timeout settings.
Origin / Application
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / ApplicationThe load balancer did not receive a target response before its connection or idle timeout. A saturated worker pool, slow dependency, or network delay can keep the request open without returning bytes.
The load balancer did not receive a target response before its connection or idle timeout. A saturated worker pool, slow dependency, or network delay can keep the request open without returning bytes.
Client -> ALB -> target receives request -> no response before idle timeout -> X 504curl -sS -I -w 'connect=%{time_connect} starttransfer=%{time_starttransfer} total=%{time_total}\n' --max-time 120 https://app.example.com/healthresource "aws_lb" "app" {
name = "app"
load_balancer_type = "application"
idle_timeout = 120
enable_deletion_protection = true
}SteadyNode measures response latency from independent regions and alerts on rising target times, giving teams a lead before ALB idle timeouts turn into 504 errors.
No credit card required.
Start for freeNo. Target connection problems and network delays can also prevent a response before the load balancer timeout.
Use a value that matches expected requests and client limits. A longer timeout can tie up connections without fixing a slow dependency.