A fault-tolerant, reactive HTTP client for Node.js and browsers, designed for distributed systems and microservices. Version 0.4.0 (latest, last released in 2016, no recent updates) provides transparent server fallback, dynamic server discovery (e.g., via Consul), request retry/backoff, and client-side load balancing based on empirical server latency. It is middleware-oriented, lightweight (~9KB gzipped), dependency-free, and supports both callback and promise-based async requests. Differentiates from alternatives like Axios or Got by focusing on resilience patterns (circuit breaker, failover) inspired by Netflix's Ribbon and Chaos Engineering.
npm install resilientVerified import paths — ran on the pinned version, not inferred.
Creates a resilient client with static server discovery, retry, fallback, and round-robin load balancing, then performs a GET request.
Consider migrating to a maintained alternative like Axios with retry plugins or Got with timeout and retry.
Upgrade Node.js to version 4 or higher.
Use client.get().then() is not available; wrap callbacks in promises.
Check for err.code and compare with resilient error constants.
Set discovery options in constructor; no per-request override available.
Run 'npm install resilient --save'.
Use const resilient = require('resilient');Ensure resilient() is called with options and returns client object.
Configure at least one server in discovery.servers or provide dynamic discovery URL.
Check if err is truthy before accessing res.body.
No dependency data recorded yet.