Într-un sistem, componentele (servicii, clienți) comunică prin API-uri și diverse protocoale — sincrone (REST, gRPC) și asincrone (messaging/cozi). Înțelegerea modului în care componentele comunică este fundamentală pentru proiectarea sistemelor formate din mai multe părți.
Comunicare sincronă (request/response)
The caller WAITS for a response (blocking):
REST (HTTP) → most common; resources over HTTP (JSON) → simple, ubiquitous, web-friendly
gRPC → high-performance RPC (binary, HTTP/2) → fast, typed; good for internal services
GraphQL → flexible queries (client requests exactly what it needs)
→ for: direct request/response where the caller needs an answer now
