Skip to content

How can we handle when there are more services and other 3rd party dependencies between them. #319

Answered by MarioCarrion
joobisb asked this question in Q&A
Discussion options

You must be logged in to vote

@joobisb

Let's say there are task, user, subtask services, we need to send notifications when we create a taskor subtask, this notification can be via different channels email, SMS, etc. We may use different 3rd party API providers for each of them, etc. How would we structure this ?

It sounds like like you mean customer notifications after the fact when we know we already processed everything we needed to process, in that case I'd use a queue with a payload that indicates:

  • notificationType to use such as email, SMS, etc,
  • notificationProvider like the actual 3rd party provider, maybe you have two different for email, for example, and
  • message which will indicate the content itself.

For…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@joobisb
Comment options

@MarioCarrion
Comment options

Answer selected by MarioCarrion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants