Using Twilio and stdlib to create a scalable SMS service. A service to make sending messages with Twilio easier at scale. This post is part of a series of open source projects that I’ll be releasing in the next while, as described . previously here Delivering Messages Previously, we had built a product, , that gave product recommendations via text messages. We had to deliver a lot of messages to our users via SMS and MMS. Fortunately, there are a couple of great companies like and that are solving the macro problems when it comes to delivering messages over multiple networks. Suto Twilio Plivo However, there are quite a few issues dealing with these APIs and providing a good experience to users who are communicating with your business via SMS or MMS. These issues range from messages being delivered in the wrong order or format, all the way to the messages not being delivered at all. We had to deal with all of that as a small startup attempting to create a product people love. We’ve created a simple service on to solve these problems. stdlib Twilio Messaging Microservice Today, we’re open sourcing a small portion of what we had built to deal with a few of those issues. Specifically – message order delivery, truncation and multi-media messaging. It’s a mircoservice to help deliver messages using Twilio called built using . The service is available and the code can be found . twilio-f stdlib here here You can use its function to deliver long, descriptive messages with multiple media attached to the message and it will handle all the work for you. sendMessage It’ll handle , automatically to avoid truncation, and using timeouts. multiple media urls splits up long messages control delivery order You can read about how to get started with it here: https://github.com/nemo/twilio-f#sending-messages Next time you’re building a chat-bot or have to deliver SMS/MMS to your customers – now there’s a super-easy and battle-tested function that gets the job done! If you’d like to keep up with the open-source microservice releases that we’re doing over the next while, be sure to follow my posts.