16/30
Part 5 of 7 · A fleet that follows trafficLearn
Conversations in flight are the arrival rate times how long each one lasts
Start with how many conversations the shop holds at its busiest.
# requests a second at the shop's peak
rate = 5
# first token, then 249 more, 30 ms apart
seconds_each = 0.35 + 249 * 0.03
print(f"{rate * seconds_each:.0f} sequences in flight")
Five requests arrive each second, and each one lasts 7.82 s from sending to its last token. On average, how many are in progress at once?
Pick one to see what it prints.
Pick an answer above to see the rest