Skip to content

timeout capability

timeout adds context-based timeout middleware to your Go service, preventing hung handlers from exhausting your goroutine pool.

  • Timeout middleware
  • Configurable per-route timeouts
  • Context cancellation propagation

Without explicit timeouts, a hung external call blocks a goroutine indefinitely. Under load, this exhausts your connection pool and cascades failure to all callers. Add timeout to any service that calls external systems or runs non-trivial processing in HTTP handlers.

Requires: http-api

Terminal window
verikt new my-service --language go --cap http-api,timeout
# or add to an existing service:
verikt add timeout

circuit-breaker

Circuit breaker for when timeouts aren’t enough to stop cascades.

retry

Retry with backoff after a timeout.

http-client

Resilient HTTP client with built-in timeout handling.