Building the Ultimate Valentine’s API
Blog: The Tibco Blog
Integration is red (it is my heart, after all), clouds are blue, interconnect everything and I’ll you!
With the theme of TIBCO NOW this year being “Digital Smarter”, I wanted to see if I could build the ultimate Valentine’s Day API using our own technology while considering the requirements that might impose on one’s choice of tech.
Valentine’s Day is traditionally the holiday where people receive cards from their significant others and secret admirers and is also a great day to have a first date. What to do on a first date? Catch a movie. According to research, one in ten people would ask someone out based on their movie preferences, so having the ability to connect to different film APIs could make or break that first date.
Another important aspect of Valentine’s Day and first dates? Candy. In fact, we collectively spend more than $1.7 billion on candy, and in the US, over 36 million boxes of chocolate are bought or shipped from stores or online. With chocolate, we need to not only interact with APIs, but also need to orchestrate calls to make sure the chocolate is bought first and shipped afterward. I can import all of these APIs into TIBCO Business Studio—Cloud Edition, wire them together, and add some logic – without writing a single line of code.
Now I have multiple APIs that I’m using and there is a bit of business logic in there to decide which API to call in each given situation. For example, if someone chooses Netflix over an in-person movie, they might want the chocolate to be delivered to their home. Now I need to model the specification of what I want to expose to my users, as that will be different than the APIs I’ve been using. Using the API Modeler of TIBCO Cloud Integration, I don’t have to worry about the syntax as I can see what the API will look like using the visual modeling capability.
Every year, there are about one billion Valentine’s Day cards sent to sweethearts, lovers, children, and teachers (in fact, teachers actually receive the most Valentine’s Day cards!) Apart from Christmas, Valentine’s Day is the largest card sending time of the year. A further requirement of our ultimate Valentine’s Day API is to be able to handle the one billion API calls coming in from Valentine’s cards. Luckily, with TIBCO Mashery, we’re absolutely able to handle that traffic!
So, my ultimate Valentine’s Day API is able to scale and handle high levels of traffic, orchestrates the use of other services, and is designed to my specifications without writing any code.
Want to build your own ultimate Valentine’s Day API (or any awesome API, for that matter)? Sign up for a free 30-day trial of TIBCO Cloud Integration to design and quickly build whatever API your heart desires. Join us for our upcoming webinars on the Spectrum of Integration, which will be available instantly on-demand after the live broadcast and demonstrate powerful tools to tackle cloud integration and cloud connection. Our first webinar, Connecting Cloud Services, is already available to watch, and our next webinar, How to Get Started with Containers and Hybrid Cloud, is coming up on 2/23. Register today!
Sources: https://www.fundivo.com/stats/valentines-day-spending-statistics/ and http://www.goodhousekeeping.com/holidays/valentines-day-ideas/a26863/valentines-day-facts/