एक सिस्टम में, components (services, clients) APIs और विभिन्न protocols के माध्यम से संवाद करते हैं — synchronous (REST, gRPC) और asynchronous (messaging/queues)। components कैसे संवाद करते हैं यह समझना कई हिस्सों से बने सिस्टम डिज़ाइन करने के लिए बुनियादी है।
Synchronous communication (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
