But Your solution should work as well, but if for any reason the notification sending fails you won’t know unless you have some retry messaging que or something
a
Aleksei Tirman [JB]
09/16/2021, 7:26 AM
IMHO It's better to call a notification function before
call.respond
because the latter executes the whole response pipeline.
☝️ 1
v
Viktor Petrovski
09/16/2021, 7:27 AM
Yeap I agree with @Aleksei Tirman [JB], that is why I use the
suspendedTransactionAsync
this way I respond back without waiting for the notification to be send