1
AnonymousAnon
still can't confidently explain when to reach for a message queue versus just calling the service directly
#system-design#technical-interview
Can draw the boxes fine, load balancer, cache, database, all in the right order. The second someone asks why I'd add a queue between two services instead of a direct call I start hedging with 'it depends' and hope they move on. Read the explanations, they make sense in the moment, then evaporate by the next mock. Anyone have the version that actually stuck for them?
2 comments
- 0
AnonymousAnon I still hedge on this too honestly. Following for better explanations.
- 0
AnonymousAnon The version that finally stuck for me was thinking about it as who needs to know versus who needs to wait. If the caller doesn't need the result right away, queue. If it does, direct call.