PHP / CURL / Other - How resource intensive?

I will have a daemon running on a FreeBSD server that exchanges small amounts of data with a list of URIs every minute.

I am thinking of using curl_multi functions to run them all at once or in groups every minute using a message. However, I am open to other ideas.

I'll need to do a bit of benchmarking later, but for now does anyone know how resource intensive it is to do a lot of little curl posts?

Is there a less intense way to do this? SOAP perhaps? To get started, there will only be them every minute, but it can grow rapidly.

Thank!

0


source to share


1 answer


I would say that SOAP processing (generating a request, sending it, processing it, and then receiving a response) can be more resource intensive than just POST, even "multithreaded". Profiling or benchmarking is probably the only way to be sure of this.



0


source







All Articles