0

I'm writing a PHP script that will handle requests from outside sources. Does it matter that thousands of requests will be handled by one PHP script? Is this efficient?

3 Answers 3

1

What you need to know is, an instance of the script is created on each request.

It doesn't matter if you have a single script called 1000 times at once or 1000 scripts called at the same time.

Your bottle neck might be elsewhere like database or file io. So don't worry, you can do as you wish.

Sign up to request clarification or add additional context in comments.

Comments

0

I do not see reason why this would be problem. If you do not use > 5 queries per API request, it's easy to proccess it all (depends on many factors)

Comments

0

There is no difference if you have two identical scripts on the same server that handle half of the requests each, if that's what you're asking.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.