Posts tagged “api”

  1. API keys, OAuth client credentials or mTLS: how should services authenticate?

    API keys are simple and fine for low-risk public APIs if they're hashed, scoped and rotatable. OAuth client credentials give short-lived, scoped tokens and central control. Mutual TLS proves identity at the connection level and suits internal service meshes. Signed requests (HMAC) protect…

    · 6 min read · Security

  2. REST vs GraphQL vs gRPC for internal services: which one?

    REST for public and simple APIs, GraphQL where many clients need different shapes of the same data, gRPC between your own services when latency and strict contracts matter. What each one is good at, what it costs, and how to choose per boundary, not per company.

    · 7 min read · System Design