1.Daily requests to QPS
BeginnerAn app has 2 million daily users, each making 15 requests. Print the average QPS, and the peak at 3 times the average, as whole numbers.
Show hint
Divide by 86,400 seconds.
Show solution
users = 2_000_000
requests = users * 15
avg = requests / 86_400
print(f"Average: {avg:.0f}")
print(f"Peak: {avg * 3:.0f}")Average: 347
Peak: 1042