REST or gRPC

Wire 11

Choose

A front service calls a worker 2,400 times/s. Each call sends 2 KB of structured data and gets 12 KB back. The worker has half a CPU core. Choose the design. Keep p99 below 180 ms, errors below 0.1 percent and cost at or below 14 USD/month.

Goals

Not tested yet

99 of 100 requests finish faster than this.The share of requests that fail or get no answer.What the servers and services cost each month.
Choose a design
JSON over HTTP/2
JSON over HTTP/2 with a second worker
gRPC with compact messages