Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
海,
我们在分布式系统中使用消息,消息是什么意思?
我们可以说UDP使用消息而不是HTTP,有人能告诉我原因吗?
非常感谢
消息是您传递的一条信息:)
UDP 更快、更简单,并且不保证传递顺序,甚至不保证消息(数据包)的传递。HTTP 依赖于 TCP,它保证按顺序传递,并进行必要的重试等,但它有更多的开销,而 HTTP 增加了更多的开销。