Ximik
Ximik

Reputation: 2495

Google Cloud Engine: PubSub instead of RabbitMQ

My project has microserver architecture working in Google Cloud. I'm thinking about moving from container with RabbitMQ to PubSub engine.

The question is: is it possible to receive messages one by one? My code is written on Go and docs says

The callback is invoked concurrently by multiple goroutines, maximizing throughput.

But how many goroutines can be invoked? How can I set the max allowed? E.g. one of my workers works with third-party API allowing only one connection per IP, so I can have only one task in time for this worker.

Upvotes: 0

Views: 3849

Answers (1)

Ximik
Ximik

Reputation: 2495

Correct solution is App Engine Task Pull Queues

https://cloud.google.com/appengine/docs/standard/go/taskqueue/overview-pull

Upvotes: 1

Related Questions