pubsub

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 7 Imported by: 0

README

pubsub

pubsub is a light-weight publisher-subscriber service using gRPC as the medium of communication. This acts as an event bus that delivers events sent by the producers to the respective subscribers who have registered for a topic.

Producer

The producer can push events with a topic and a message. Publisher should use the proto in /publisher/publisher.proto for implementation.

Subscriber

The subscriber can subsribe to a topic and listen to events for that topic. Subscriber should use the proto in /subscriber/subscriber.proto for implementation.

Installation

go run main.go

Roadmap

  • Support subscription of multiple events.
  • Replace map with in-memory database to support horizontal scaling.
  • Persist subscription information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL