I am new to backend development and I was building a feature for my project where I can send notifications to various channels (for example slack).
I have a written notification class, which loads the service config from database and send the message.
The project I am building is managing users across various services (eq jira, github, vercel, sentry) from a common place
I am not sure how the best way to call this class.
For now let's say I have four notification events
- User is created
- User is deleted
- Integration is failing (ex token expired)
- Integration is connected
One way I was thinking was, that whenever create user api is called, after sending invites, I call this notification api and send message to slack (like simple function call).
but does anyone have any other suggestions besides this.