https://github.com/barancanatbas/pubsub
https://github.com/barancanatbas/pubsub
golang message message-broker mutex-lock pubsub
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/barancanatbas/pubsub
- Owner: barancanatbas
- Created: 2022-06-01T19:00:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T19:13:13.000Z (about 4 years ago)
- Last Synced: 2024-06-21T06:33:04.884Z (almost 2 years ago)
- Topics: golang, message, message-broker, mutex-lock, pubsub
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pub/Sub pattern
#### While writing these codes, I was inspired by a blog post.
#### I did a little experiment to better understand the pub/sub pattern.
#### I may have many mistakes, don't forget to report what you see.
## use case
* create a broker as a first step.
* then assign a new subscriber value to the broker value using the AddSubscriber method.
* You can listen to this subscribe value you created with the Listen method.
* If you don't want to use it, you can write your own method.