Topic names as variables


Currently the topics (entity events) defined in the proto files are fixed. Is there a possibility to override the names of these topics via environment variables/secrets?

Our use-case for this is easy deployment in multiple environments while using the same google pub/sub project for those environments

Right now we publish seperate version of each microservice where we manually update the topic names. As we’re adding more and more microservices this is becoming quite time consuming and very error prone

Thanks in advance

I’m afraid that is not currently possible, the problem/use case is on our radar though.

1 Like

Hi @Gilles

We have now added support for this in the JVM SDKs, you can see docs here: Publishing and Subscribing with Actions :: Kalix Documentation

It is also supported for the new brokerless eventing: Service to Service Eventing :: Kalix Documentation