2

股票报价的消息中间件是如何设计的?

 2 years ago
source link: https://www.v2ex.com/t/847769
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

股票报价的消息中间件是如何设计的?

  golangLover · 5 小时 37 分钟前 · 379 次点击

如果是用 kafka 作为消息中间件。

股票的报价需要是高度实时,而且要严格的消息顺序(例如我必须先看到 12:01:01 的信息,然后再看到 12:01:02 的信息)。

而 Kafka 只在同一个 partition 内的消息是严格顺序的,所以只有就是一个 topic 一个 partition 才能保证消息顺序。

那用户是属于哪一个 topic 这种关联应该怎么样去绑定呢?

要保证 exactly once,还有幂等性之类,很多细节都不清楚。哪位能赐教一下,谢谢。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK