I have a mySQL database in the server, I maintain a value for all items. The database is constantly updated by a independent server. When the values exceeds certain range, I want to send message to my android device through Google cloud Messaging.
I don't know how to trigger an event when the value exceeds certain range. I thought of using a trigger to send request to GCM server, but that looks bad option making a SQL database do non-SQL things.
Which is the efficient method to call an API on a particular event in the database. Any pointers would be greatly appreciated.