cgodfrey to add use cases where a cleanup script would be helpful in a multi-tenant environment. Then evaluate whether this is one story or should be broken into several stories.
- removing extraneous Kafka topics when a tenant is removed from a multi-tenant environment
- decide if the module that acts as a Producer (and triggers the auto-creation of the topics in Kafka) should delete the Kafka topics when it is disabled for the tenant - if so create necessary stories for all such modules. Take into account that any published events to deleted topics will be lost.
- decide how to deal with obsolete topics in case event was renamed after upgrade to a newer release - consider creating a list of topics that will no longer be in use and will need to be deleted (how to delete them? any kind of script can do that, or it requires devOps manual intervention?) It definitely should be mentioned in a release notes.
- review the naming convention to the topics, are there any inconsistencies so far - list them and consider renaming such topics to fit common pattern. Create tasks if required.