Pregunta de entrevista de Magic Compass

how to solve the high qps question?