Is a simple way to implement message-broker in the golang programming language. In that case, i use Google Cloud Pub/Sub
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
This is how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- Set the variable
subscribtionName
in/handler/subscriber.go
, line 29 with your Pub/Sub Topic Subscription Name value - Run Publisher Service, that is in the main directory
go run main.go
- In other terminal, run Subscriber Service in go-message-broker/subscriber directory
go run subscriber/main.go
- Or You can go to the directory, than run
go run main.go
- URL : {host}/publish
- Method : POST
- Body : { "topic" :
your pubsub topic
, "message" : "" } - Body type : json
Name - @fajarcandraaa - fajarcandraaa@gmail.com