Kafka Topics should use ENV variable and tenant id in their naming convention

Description

Purpose/Overview:

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. 

 

Requirements/Scope:

  1. Topic name should be concatenated from the following string constants (in exactly the same order):

    1. Environment name (from ENV environment variable)

    2. Tenant name (should be the second, because it is convenient to use wildcard in ACL for Kafka users)

    3. Producer module name ("storage" postfix should be omitted)

    4. Domain entity name in singular form (if it is not domain event, the name of process should be used or just event name)

Acceptance criteria:

All existing topics should be aligned.

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

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Oleksii Petrenko July 22, 2021 at 9:09 PM

Verified by  and

Oleksii Petrenko July 20, 2021 at 2:02 PM

Deployed. ready for verification

Holly Mistlebauer July 19, 2021 at 1:11 PM

Change wasn't ready on July 16 freeze date, but Capacity Planning has approved this fix as a late addition to R1 2021 Hot Fix #3.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

Release

R1 2021 Hot Fix #3

CSP Approved

Yes

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created July 13, 2021 at 9:12 AM
Updated July 22, 2021 at 9:09 PM
Resolved July 19, 2021 at 2:14 PM
TestRail: Cases
TestRail: Runs