node-ts / bus

A typescript based enterprise service bus framework based on enterprise integration patterns
https://bus.node-ts.com/
MIT License
272 stars 25 forks source link

Provide a CLI option for queue migrations #155

Open adenhertog opened 3 years ago

adenhertog commented 3 years ago

Currently the queue configuration is applied when a service starts up. This is not idea for a couple of reasons

  1. It means the service needs to run at elevated permissions
  2. All instances apply the configuration at startup
  3. Because of point 2, unsubscriptions from topics can't be done as neither old nor new service will know which is the current configuration

This feature should add a cli option that applies the current configuration and remove any redundant topic/queue subscriptions (the latter should be possible to be disabled via additional flags). This will allow migrations to fit in as part of a broader CI/CD process.