Bird
0
0

What is a key reason Spring Boot microservices prefer messaging over direct REST calls for inter-service communication?

hard📝 Conceptual Q10 of 15
Spring Boot - Messaging
What is a key reason Spring Boot microservices prefer messaging over direct REST calls for inter-service communication?
AMessaging eliminates the need for service discovery
BREST calls are always synchronous and cannot be secured
CMessaging supports asynchronous, reliable communication that improves fault tolerance
DREST APIs require all services to share the same codebase
Step-by-Step Solution
Solution:
  1. Step 1: Understand communication styles

    REST calls are typically synchronous, while messaging supports asynchronous communication.
  2. Step 2: Consider reliability and fault tolerance

    Messaging systems often provide guaranteed delivery and retry mechanisms, enhancing fault tolerance.
  3. Final Answer:

    Messaging supports asynchronous, reliable communication that improves fault tolerance -> Option C
  4. Quick Check:

    Messaging = async + reliable + fault tolerant [OK]
Quick Trick: Messaging enables async, reliable communication [OK]
Common Mistakes:
  • Assuming REST cannot be secured
  • Believing messaging removes need for service discovery
  • Thinking REST requires shared codebase

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes