RPC vs Messaging: When to use which?

Опубликовано: 05 Ноябрь 2024
на канале: CodeOpinion
27,794
1.2k

Not all communication is going to be synchronous request/response with HTTP/RPC or asynchronous messaging within a system. But how do you choose between Synchronous vs Messaging? Well, it depends on if it's a command and/or a query as well as where the request is originating from. If you want reliability and resiliency, then use messaging where it's appropriate.

🔔 Subscribe:    / @codeopinion  

💥 Join this channel to get access to source code & demos!
   / @codeopinion  

🔥 Don't have the JOIN button? Support me on Patreon!
  / codeopinion  

📝 Blog: https://codeopinion.com
👋 Twitter:   / codeopinion  
✨ LinkedIn:   / dcomartin  

0:00 Intro
2:15 Queries
3:37 Client UI Request
4:17 Message Consumer
5:11 Commands