Skip to content

amyangfei/mini-pubsub-broker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-pubsub-broker

A lightweight publish/subscribe server driven by libevent

Build

You should install libevent and libdatire first and make sure gcc can search the header file of these libraries.

Then simply run make or make debug under the root path.

Usage

The subscribe mechanism is topic based and topic means the prefix string of a message. For example a subscriber has subscribed the topic of n, net and network, any messages starting with n, net or network will be published to this subscriber.

The protocol between server and subscribe client is a subset of RESP(REdis Serialization Protocol). So you can simply use redis-cli for testing. The protocol between server and publisher is simply native tcp connecting, sending messages and reading response.

About

A mini publish/subscribe message broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published