0
0
Microservicessystem_design~10 mins

Why inter-service communication defines architecture in Microservices - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to select the communication style used between microservices.

Microservices
communication_style = "[1]"
Drag options to blanks, or click blank then click option'
Amonolithic
Bdatabase
Csynchronous
Dsingle-threaded
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'database' as communication style, which is a storage method, not communication.
2fill in blank
medium

Complete the code to define the message format used in inter-service communication.

Microservices
message_format = "[1]"
Drag options to blanks, or click blank then click option'
AXML
Bbinary
Cplaintext
DJSON
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing XML, which is heavier and less common in modern microservices.
3fill in blank
hard

Fix the error in the code that sets the communication protocol for microservices.

Microservices
protocol = "[1]"
Drag options to blanks, or click blank then click option'
AFTP
BHTTP
CSMTP
DSSH
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing FTP or SMTP, which are for file transfer and email, not service communication.
4fill in blank
hard

Fill both blanks to complete the code that defines the communication pattern and its benefit.

Microservices
communication_pattern = "[1]"
benefit = "[2]"
Drag options to blanks, or click blank then click option'
Aevent-driven
Breduces tight coupling
Cshared database
Dincreases latency
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'shared database' which increases coupling.
5fill in blank
hard

Fill all three blanks to complete the code that sets the communication method, protocol, and message format.

Microservices
communication_method = "[1]"
protocol = "[2]"
message_format = "[3]"
Drag options to blanks, or click blank then click option'
Aasynchronous
BHTTP
CJSON
DTCP
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing TCP as protocol, which is lower level than HTTP.