Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
327 views
in Technique[技术] by (71.8m points)

machine learning - deduplication by similarity of kafka messages

I need to deduplicate a kafka stream of messages by similarity in a rolling fashion. We can assume that only messages within 1 day will possibly be duplicates. The current strategy is to do compute the cosine similarity of a new message with previous messages within a day in memory to find the most similar and mark these as duplicates. However, this has to be single-threaded due to the in-memory nature. I presume that we need to persist messages within 1 day in some sort of storage to make the process distributed. However, computing the cosine similarity becomes no longer viable if it's not in memory.

Is there a good algorithm to find similairy/duplicates with persistence storage?

question from:https://stackoverflow.com/questions/65910304/deduplication-by-similarity-of-kafka-messages

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...