cloud-service

Learn how to implement Cloud Pub/Sub Subscriber in Golang

3 minute read

Prerequisite

Subscriber

Cloud Pub/Sub supports push and pull message delivery. In this post, we would dive into Push Subscrption.

Learn how to implement Cloud Pub/Sub Publisher in Golang

2 minute read

Prerequisite

Hands-on

Now lets get into the hands-on!

# Clone repo and restore dependencies
$ git clone https://github.com/life1347/go-google-cloud-pubsub-exmaple.git \
  $GOPATH/src/tachingchen.com/googlePubSub

restore dependencies with godep

$ go get -u github.com/tools/godep
$ cd $GOPATH/src/tachingchen.com/googlePubSub && godep restore