hoangquochung1110 / public-notes

0 stars 0 forks source link

Building microservices - Sam Newman #35

Open hoangquochung1110 opened 1 month ago

hoangquochung1110 commented 1 month ago

Styles of Microservice Communication

1. Communication through Common Data

💼 Implementation choices: File System, Persistent Data Store

📌 When to use:

Pros:

⚠️ Limitations:

2. Request-Response with Synchronous Blocking

💼 Implementation choices: REST API

📌 When to use: Chain of calls (requests) have to be resolved in a strict order

Pros:

⚠️ Limitations:

3. Request-Response with Asynchronous Blocking

💼 Implementation choices: gRPC, Queue-based brokers

📌 When to use: Chain of calls (requests) have to be resolved in a strict order in which has long-running processes

Pros:

⚠️ Limitations:

4. Event-driven Communication

💼 Implementation choices: Topic-based brokers

📌 When to use:

Pros:

⚠️ Limitations: