Anyone have any experience using a long-running Magento process to mitigate overhead. For example, a typical Magento API call to an order or customer resource could take 1s or more, with potentially half of that time being spent on Magento overhead, and not specific to the API resource in question.
So, what if a Magento PHP process was spun up and maintained in memory, waiting for API requests, so that it could handle them without the need to load up Magento each time.
Most of my searches for long-running php scripts are turning up questions / issues related to troubleshooting PHP scripts that are taking longer than expected to run b/c of the amount of data they're processing, etc. - so I'm finding it difficult to find good resources on this kind of thing, if it's even possible.
UPDATE: To be a bit more specific with my needs:
- I already have memcached in place for simple GETs that we can safely cache server-side.
- It's write operations that I'd like to optimize now.
- Using a REST API, so don't have any WSDL loading that we're concerned with.