ed-pilots-network / backend

Project to consume the Kafka, process the messages and provide an API to access the data
Apache License 2.0
12 stars 5 forks source link

Extract sending the intermodule responses to their own services #136

Closed pveeckhout closed 7 months ago

pveeckhout commented 7 months ago

Is your feature request related to a problem? Please describe. Currently, the project employs asynchronous processes in multiple message receivers, leading to duplicated logic across various parts of the application. This redundancy complicates maintenance and scalability, especially when updating or extending the async handling logic.

Describe the solution you'd like Extract sending the intermodule responses to their own services

Describe alternatives you've considered An alternative could be refactoring the existing async methods into a application eventing. However, this approach introduces yet another communication system without much benefit.

Additional context This enhancement is crucial for maintaining a clean, scalable architecture, especially as the application grows and more asynchronous processes are introduced. Adopting this pattern aligns with modern best practices in software architecture, facilitating easier updates and extensions in the future.