Skip to content
Vereda
Guide
Patterns
Book
API
Search
Ctrl
K
Cancel
Suggested
Retries and backoff
Circuit breaker
Timeouts
Error handling
OpenTelemetry
Cancelling a request
GitHub
Menu
Guide
Working with requests
Results and errors
Resilience
Observability
Testing
Compared with other libraries
Operations
Patterns, animated
Overview
Timeouts
Backoff and jitter
Retry budget
Circuit breaker
Bulkhead
Rate limiter
The Vereda Book
Overview
1. Why Vereda exists
2. A map of the repository
3. Using Vereda from the outside
4. The ticket
5. Life of a request
6. One attempt
7. Deciding to retry
8. Isolation: bulkheads, the global cap and the rate limiter
9. Failing fast: the circuit breaker and the retry budget
10. Observability and extension points
11. The rules and the bugs that taught them
12. How the project checks itself
13. Open problems
Glossary
Download EPUB
Download PDF
API reference
Overview
adapters/zod
Overview
Functions
withZod
core
Overview
Classes
CancelledError
CircuitOpenError
ConfigurationError
DeadlineExceededError
HttpClient
HttpError
MaxRetriesExceededError
NetworkError
QueueFullError
RateLimitedError
RequestError
RetryableStatusError
Ticket
TimeoutError
ValidationError
Interfaces
BackoffOptions
BulkheadSnapshot
CircuitBreakerConfig
CircuitSnapshot
ClientConfig
ClientTimeoutConfig
Logger
MetricsSink
PartitionConfig
PauseOnRetryAfterConfig
RateLimitConfig
RequestOptions
RetryBudgetConfig
RetryConfig
RetryPolicyContext
TimeoutConfig
Type Aliases
AppError
BackoffFn
BodyOf
CloseOptions
LifecycleEventMap
MetricTags
ParsedRequestOptions
ParseFn
RedirectMode
ResponseType
Result
RetryPolicy
TicketStatus
TicketUpdate
UnparsedRequestOptions
Variables
DEFAULT_BASE_DELAY_MS
DEFAULT_CONCURRENCY
DEFAULT_FAILURE_THRESHOLD
DEFAULT_GLOBAL_CONCURRENCY
DEFAULT_GLOBAL_QUEUE_SIZE
DEFAULT_HALF_OPEN_MAX_ATTEMPTS
DEFAULT_JITTER
DEFAULT_MAX_DELAY_MS
DEFAULT_MAX_PAUSE_MS
DEFAULT_MAX_QUEUE_SIZE
DEFAULT_MAX_RETRIES
DEFAULT_MIN_RETRIES_PER_SEC
DEFAULT_PAUSE_STATUSES
DEFAULT_RESET_TIMEOUT_MS
DEFAULT_RETRY_ON_STATUS
METRICS
NO_TIMEOUT_CONFIGURED
Functions
defaultRetryPolicy
isBoundedMs
json
redactUrl
validateConfig
middleware
Overview
Interfaces
RequestContext
Type Aliases
MiddlewareFn
NextFn
Functions
defaultHeaders
requestLogger
otel
Overview
Interfaces
OtelTracingOptions
Functions
instrumentTracing
otelMetricsSink
testing
Overview
Interfaces
FaultyFetchOptions
Type Aliases
Fault
Functions
faultyFetch
GitHub
otel
Interfaces
Section titled “Interfaces”
OtelTracingOptions
Functions
Section titled “Functions”
instrumentTracing
otelMetricsSink