RandomWits

life is too short for a diary




Daily logs for Nov 15, 2026

Tags: letters solana

Author
Written by: Tushar Sharma
Featured image for Daily logs for Nov 15, 2026

Dear Vishi, dear logs for today.

Retries, backoff, and jitter

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.

Backpressure and throttling

  • Backpressure: a slower consumer signals the producer to reduce or pause production. This prevents the consumer from being overwhelmed.
  • Throttling: a service limits incoming requests to protect its capacity. An HTTP service commonly responds with 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.

Solana faucet

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.


comments powered by Disqus