REST or gRPC for internal services

Back to list2026-07-30
You

Which protocol for service to service calls?

ChatGPT

gRPC when the callers are yours and latency matters, REST when they are not:

REST/JSONgRPC
Debuggable with curlyesawkward
Schema enforcedoptionalalways
Streamingclumsynative
Browser supportdirectneeds a proxy

The schema is the real difference: with JSON the contract lives in documentation, with protobuf it lives in a file that breaks the build when violated.

You

Should scheduled jobs go through a queue?

ChatGPT

If a job can be late, a queue; if it must run at a wall-clock time, a scheduler. Mixing them produces the worst outcome: a cron entry that enqueues work which then sits behind a backlog, so the job runs on time and executes hours later.