I am using the Facebook SDK to post some things on the timeline. The problem is that it usually takes about 2-3 seconds for the API request and it slows my website, especially since i have a lot of ajax requests.
Is there a way to fork a part of PHP code into the background? I want that all global, session etc to remain the same.
pcntl_.gearmandand Net_Gearman - nice and reliable, multi-platform, queueing system - and you can spread load onto multiple servers very easily. GearmanManager is also worth a look - find both here.