title: Is it possible to set groupId in Spring Boot Stream Kafka at startup or compile-time?
body: <p>I just started using Spring Boot Stream with Kafka.</p>
  
  <p>I created a producer and a consumer. What I need is to have two identical consumer (pratically two microservices) but with different groupId, so both of them will read the topic and get the same message.</p>
  
  <p>Now I have the groupId in the spring boot application project under resources in properties.yml file, is it possible to set this value at compile time as a parameter or better at startup?</p>
  
  <p><strong>properties.yml</strong></p>
  
  <pre><code>server:
      port: 8087
  eureka:
      client:
          serviceUrl:
              defaultZone: http://IP:8761/eureka
  spring:
      application:
          name: employee-producer
      cloud:
          stream:
              kafka:
                  binder:
                      brokers: IP:9092
                  bindings:
                      greetings-in:
                          destination: greetings
                          contentType: application/json
                      greetings-out:
                          destination: greetings
                          contentType: application/json
      kafka:
                             consumer:
                               group-id: 500
                               client-id: 99
  </code></pre>
  
  <p>Something this:
  <a href="https://i.stack.imgur.com/waOgU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/waOgU.png" alt="kafka consumers"></a></p>