Kafka相關

消息發送 producer 採用 push 模式將消息發到 broker,每條消息都被 append 到 patition 中,順序寫磁盤(保障吞吐率)。 日誌文件的刪除策略:啓動後臺線程定期掃描log file列表,把保存時間超過閥值的文件刪除,爲避免刪除文件時仍有read操作(consumer消費),採取copy-on-write方式。 producer 發送消息到 broker 時,會根據分
相關文章
相關標籤/搜索