I’m implementing a mobile api. One of the requests processes json data and returns afterwards a predefined message( is independent from the calculation) back to the device. I’m using kohana 3.
How do I return the http response first and do the calculation afterwards?
What do you think about, using a message queue and a separate program that does the processing and db operations?
I’m implementing a mobile api. One of the requests processes json data and returns
Share
One option would be to use gearman. There is a Kohana gearman module made by one of the Kohana devs.