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

f117af5 · Aug 15, 2020

History

11 Commits
May 5, 2020
Aug 15, 2020
Jul 23, 2020
Feb 9, 2020
Jan 18, 2020
May 5, 2020
Jul 24, 2020

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

Languages