Be warned when using GCP Pub Sub SDK Libraries.

GCP PubSub is an off the shelf hosted message queue system. It offers some reasonably standard features. Conceptually GCP supports topics and subscriptions. You post a message onto a topic, and they fan out to subscriptions. Each subscription can have one or many consumers, with messages being load balanced between them. [Read More]

Divide and conquer problems not people.

divide et impera “To gain or maintain power by generating tension among others, especially those less powerful, so that they cannot unite in opposition.” https://idioms.thefreedictionary.com/divide+and+conque) [Read More]

Abusing exceptions as goto statements

A reasonably common abuse I see is abusing exceptions as a form of control flow. If it’s inside a single method, it’s not too bad, but it’s easy to get to the point where exceptions get thrown or re-thrown and is dealt with elsewhere in the code. [Read More]

Testing Google Cloud Platform PubSub with Testcontainers

I wanted to be able to write tests against our Google Cloud Platforms PubSub implementation. Unfortunately, the way the SDK is written, it doesn’t exactly lend itself to easy testing. It’s incredibly verbose for something that is just sending a bunch of http requests! [Read More]