[2.3-java] I wrote a post about adding Twilio to Play apps so they can send and receive SMS, and make and manage voice calls...

58 views
Skip to first unread message

Michael Wawra

unread,
Aug 20, 2014, 10:54:45 AM8/20/14
to play-fr...@googlegroups.com

Howdy. I wrote a post about how you can add Twilio to your Play apps so you can easily send and receive text messages and make and manage voice calls from your code. I'm a little new to the framework so any feedback or comments are appreciated. Hope it's helpful!


Thanks!

Josh Padnick

unread,
Aug 20, 2014, 11:11:33 AM8/20/14
to play-fr...@googlegroups.com
Thanks for posting this!  The thing I always wonder about with Play and Twilio is if most people use the standard Twilio Java library as you did, or if people use Play's non-blocking WS.url() code and re-create the library?

For our Play 2.3.x Java app, we are probably going to wind up configuring the thread pools to be more like a standard blocking server because we haven't yet found an elegant way to do non-blocking JDBC calls in Java.  So a blocking call to Twilio wouldn't make much difference for us.  But if we were doing the "one thread per core" setup, then I think I would be worried about using the (presumably blocking) Twilio java library.

Josh
Message has been deleted

Michael Wawra

unread,
Aug 21, 2014, 9:24:22 AM8/21/14
to play-fr...@googlegroups.com
Thank you, I really appreciate the feedback. That's also a really good question.

In my example I'm not actually making any API calls, but this is definitely worth considering. I try to avoid making API calls on the same thread that renders a webpage to a user, to make sure you get the best user experience. I've tended towards worker queues for this, but I completely see what you mean.

mjw
Reply all
Reply to author
Forward
0 new messages