Mehdi Akiki

Posts tagged "Tokio"

  • Published on
    Bound fan-out before creating work. A semaphore inside thousands of spawned tasks limits active calls but leaves thousands of waiting tasks and their data.
  • Published on

    Article · Through the layers

    Decide what happens when the queue is full

    A bounded worker queue needs an admission policy. Choose between waiting, rejecting, and durable acceptance, and tell callers which promise they received.
  • Published on

    Article · Interrupted execution

    Don't detach a task just to hide a slow request

    Dropping a Tokio JoinHandle leaves its task running. Decide who owns an export after a disconnect and whether completion must survive a restart.
  • Published on

    Article · Through the layers

    Don't fix a flaky test with a longer sleep

    Replace timing guesses with observable readiness and controlled time. Keep real transport deadlines separate from a deterministic retry-policy test.