Dear Vishi, dear logs for today.
A transient error is temporary, such as a network timeout or an overloaded service. A retry may succeed. A permanent error, such as invalid credentials or invalid input, requires a change before another attempt can succeed.
Retries are safe only when an operation is idempotent. A repeated GET should have no additional effect, while retrying POST /payments may create a duplicate payment. Use an idempotency key when a write may need to be retried.
Use exponential backoff between attempts: for example, wait 1, 2, 4, and 8 seconds. Limit both the delay and the number of attempts. Add jitter—a small random delay—so clients do not retry simultaneously and create a thundering herd.
429 Too Many Requests and may include a Retry-After header.Backpressure coordinates the rate between producer and consumer. Throttling enforces a rate limit at the receiving service.
A faucet distributes free tokens for development and testing; it can be off chain service or smart contract. The Solana faucet sends Devnet SOL to a wallet address.