Hi,
I have developed a simple API with a read method and a write method. The write method adds a row to the database and the read method reads out rows in a PULL fashion. This is all very simple - just some basic PHP/MySQL programming.
Now I’d like to add a read PUSH API method.
I’ve studied XMPP a little bit and that seems like the obvious solution but I am confused. Can someone explain how XMPP works at the scripting/database level? PUSH functionality seems like I’d be very processor intensive - do I need a special type of server?
To me it seems like it would depend on the write method and a database table for who’s listening for data to be pushed. IE, whenever the write function is called we check to see if any computer was listening for whatever was written and if any were we PUSH them whatever was just written…
thanks