Skip to end of banner
Go to start of banner

Apache Kafka Messaging System

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Naming Convention

ENV and tenant id setting should be used in topic naming convention. This will separate data of different customers to different Kafka topics. In addition to that it allows a Kafka instance to be shared by multiple environments that have the same tenant id. 

Approach

  1. Topic name should be concatenated from the following string constants (in exactly the same order):
    1. Environment name (from ENV environment variable)
    2. Producer module name ("storage" postfix should be omitted)
    3. Domain entity name in singular form (if it is not domain event, the name of process should be used)
    4. Tenant name (should be at the end, because it is convenient to use wildcard subscription in such case)

For example topics in bugfest (ENV  == bugfest) the Kafka topic for inventory instances for tenant fs09000000 should have the following name:

bugfest.inventory.instance.fs09000000
  • No labels