Skip to content

yongdi/kafka-msg-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

message service

use

<dependency>
  <groupId>com.voyg.msg</groupId>
  <artifactId>msg-util</artifactId>
  <version>1.0-SNAPSHOT</version>
</dependency>

example:Example test:MyTest

please re-write your own BusinessHandler

kafka

  • write(topic, key, message);//send

  • read(topic, key); //receive all messages if key is blank

kafka.properties

  • kafka.broker.list=ip:9092
  • kafka.zookeeper=ip:2181
  • kafka.topic.custom=test
  • kafka.topic.common=topicCommon
  • kafka.group.common=groupCommon

About

kafka message read/write encapsulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages