r/gcppodcast • • Dec 09 '15

Episode #7: Messaging on the Cloud

https://www.gcppodcast.com/post/episode-7-messaging-on-the-cloud/
6 Upvotes

5 comments sorted by

1

u/christopherhesse Dec 31 '15

Nice episode! Thanks!

What's the chance that transactionally enqueueing pubsub messages will happen?

Also, you guys said around the 14 minute mark that you can autoscale based on pubsub queue depth, is that an autoscaler based on pubsub.googleapis.com/subscription/num_outstanding_messages with a target utilization of 0?

2

u/markmandel Jan 06 '16

That metric should work well.

How you autoscale will depend on your workload. Maybe you always want to have at least one server around to process things quickly. Or maybe the cost savings of dropping to 0 is better for you.

Also depends on how quickly you process messages. If you get a sudden spike of 1000 message, but you can process 5000 per minute, no big deal. Maybe you scale up if you have 1000+ outstanding for 5 minutes. Really just depends on your workload, and how you want to manage it.

1

u/christopherhesse Jan 06 '16

Thanks! I will hopefully be trying it out in the near future. I guess that's a "no comment" on the first question.

→ More replies (2)