java - Bidirectional messaging system using kafka -


is there possible develop bi-directional messaging system using apache kafka ? need subscribe topic consumer need send message consumer.

you 1 of 2 ways. either set prefix system message keys or put content inside of message allows consumer avoid messages has produced.

now whether should design this, depends on message traffic. if you're not slamming events, might better consider thrift way have message components bidirectional communication. kafka excels relative complexity when need produce , consume massive volumes of data. might not case you.

for example, 1 common use case kafka hook service storm, apex or samza doing distributed processing of hundreds of gb or tb of data. if system has high throughput requirement, architecture 1 consider starting point kafka handling messages. storm, if need send messages reprocessing, can use kafka bolt republish message kafka ensure gets reprocessed.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -