code

Spring Cloud GCP Pubsub Consumer Deserialization

3 minute read Published:

Having issues deserializing pubsub message with Spring Cloud?
Lately I’ve been working on a project where we’re consuming messages from a Google PubSub topic. Whenever it comes to consuming or producing data from middleware typically Spring Cloud Stream is my go to framework and project. The special thing about SCS is that you can change binders, or middleware rather, at will. While it may seem unlikely that you’ll ever be switching middleware on a regular basis, it does indeed happen.