Morning folks, I’d like to send an sms message via twilio but also save a record of the message. Should I do a write and use a subscription to send the sms? Or an operationAfter? Or some kind of resolver? ..hm, maybe operationBefore so I only write it if it succeeds?
timwis
10/27/2017, 10:24 PM
Hey, anyone have a suggestion for which type of function I should use for this?
a
agartha
10/27/2017, 10:26 PM
operationBefore is good if you only want to save the node if the sending succeeds. The other way around, and the saved message could act like a trigger for a subscription. That subscription could also update the status.
The benefit of that approach is that subscriptions run async, so you get better performance in some cases.
t
timwis
10/27/2017, 10:58 PM
thanks @agartha
timwis
10/27/2017, 10:58 PM
do you know if there’s any concept of retries with subscriptions?