I have a server on Nestjs (docker, typeorm, pg).
I need to add a CMS for creating articles, I chose strapi for this. I need to notify all users when a new article is published via Strapi. The question is, is it worth connecting a message broker here, and if so, at what stage is it better to do it? Strapi has webhooks that I can use to make requests to my Nestjs server, or I can do Kafka integrations for Strapi and immediately interact with the notification microservice on my service. Is it better to use a webhook that will only trigger the sending of notifications and already implement kafka on my server? Tell me how to better implement the architecture for this?
Now Nestjs is configured for microservices, but all the logic is in one place (auth, users and other resources). I would like to move notifications to a separate microservice.
Huby M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.