Skip to content

为Spring-boot提供消息队列能力的starter, 并提供了VM线程的轻量级实现

License

Notifications You must be signed in to change notification settings

wangyuheng/embedded-mq-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

embedded-mq-spring-boot-starter

为Spring-boot提供消息队列能力的starter, 并提供了VM线程的轻量级实现。

DESIGN

design diagram

GUIDE

  • Consumer
@Consumer(topic = CONSUMER_TOPIC, id = CUSTOM_CONSUMER_ID)
public void consumerMessage(Message message) {
    consumerRecordMap.get(CUSTOM_CONSUMER_ID).add(message);
}
  • Producer
@Autowired
private DefaultProducer<String> producer;

public void sendMessage(){
    producer.send(new Message<>(CUSTOM_TOPIC, "This is a message!"));
}

About

为Spring-boot提供消息队列能力的starter, 并提供了VM线程的轻量级实现

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages