Skip to content

rizlantamima/golang-google-pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Golang handle Google Pub/Sub

Google Pub/Sub is an asynchronous messages service, or maybe you can call it as message broker like RabbitMQ / Kafka

in this project I made 2 different cli applications, one of which acts as a message publisher, application that sends messages on the topic, the other one as a subscriber, application that subscribing messages from a topic.

Preparation :

  1. Make sure that you already have go on you pc
  2. You must have google projects that enable google pubsub Api.
  3. You must create at least 1 topic and 1 subscription on google pubsub api.
  4. Save the name of your google project on .env file as GOOGLE_PROJECT_ID

Publisher Apps Installation

  1. Change your working directory to the publisher.
cd publisher
  1. Install any go module on this app
go get
  1. Run this publisher app
go run main.go

Subscriber Apps Installation

  1. Change your working directory to the subscriber.
cd subscriber
  1. Install any go module on this app
go get
  1. Run this subscriber app
go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages