On Thursday, November 24, 2016 at 11:20:02 PM UTC+10, Cédric Krier wrote:
>
> On 2016-11-24 22:44, Vincent Bastos wrote: 
> >  ok, so for now I can create an sms_queue module but without updating 
> the 
> > status of an sms. 
>
> I do not think you need a queue [1]. You can also use the 2 phase commit 
> like the sendmail_transactional does. 
>
> [1] 
> https://mikehadlow.blogspot.nl/2012/04/database-as-queue-anti-pattern.html 
>

Yeah, I meant to follow this pattern rather than a queue, but then 
shouldn't I handle the case where Twilio is not reachable?

Btw Twilio provides a way to validate their requrests [1]

[1] - https://www.twilio.com/docs/api/security#validating-requests 

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/d6101be7-e7f3-47f8-a3bf-ae786da65ea6%40googlegroups.com.

Reply via email to