title: Loadbalancing subscribers - How is it done?
body: <p>GCP pubsub docs mention load balancing for pull mode, it's not clear how to use it. </p>
  
  <p>The Subsciption nor The Subscriber builder api, doesn't seem to have a method to turn this on. </p>
  
  <p><strong>Question:</strong> How to configure load balancing accross multiple pubsub subscribers? </p>
  
  <p><strong>Background:</strong> </p>
  
  <p>We use multiple subscribers for the same topic, to achieve resilience. 
  (Multiple endpoints can be queried for data from the same data store). </p>
  
  <p>The subscriptions persist the messages, but with out distribution, all subscriptions get all messages, leading to data duplication in our data store. Perhaps this background, will give ideas for another way to achieve resilience. </p>
  
  <p><strong>Things we have thought of ourselves:</strong> </p>
  
  <ul>
  <li>Use multiple data stores... </li>
  <li>Mark the messages, and do some sort of optimistic locking/versioning of rows in the data store. </li>
  </ul>
  
  <p><strong>Technologies:</strong> </p>
  
  <ul>
  <li>GCP pubsub</li>
  <li>Spring Boot / Data </li>
  <li>JPA </li>
  <li>Postgres DB. </li>
  </ul>