I need to have a user agent process instance per client request. I'm migrating from code which uses daemon() inside child processes to separate them from their parent process's lifetime.
The solution is launchd, which I've not done much with aside from the mundane cron type of functionality. I believe I need inetdCompatibility to get a separate process per request.
Is XPC the right tool for this job? The 2014 WWDC video made mention of subprocesses having no state, and being short-lived, which won't apply in my case. But I'd still like the benefits of the easy communications.
Thanks for any pointers,
Jim