1. 37
  1. 9

    This is pretty clutch. Another article about queues that I go back to over and over and over again is Things we (finally) know about network queues, which I tend to summarize as

    • Queues exist only to solve burstiness and belong at the edges of a system, not within it
    • If you’re trying to push to a full queue, block and produce backpressure rather than dropping
    • If you’ve pulled an item from a queue but discover you can’t process it, drop it rather than putting it back
    1. 4

      I’m a big fan of both SimPy and Agents.jl to simulate queues. As the article mentions, if you model arrivals from a Poisson distribution and processing times as exponentially distributed, you should be able to mimic many real-world queues including models of network services.

      1. 2