Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:11:00+00:00 2026-05-22T18:11:00+00:00

I have a script written in PHP that sends an API call to eBay.

  • 0

I have a script written in PHP that sends an API call to eBay. There are several (15-50) calls made every second. I did some benchmarking and noticed that PHP doesn’t execute these as fast as I’d like since it doesn’t run them in parallel.

My question: Is it a good idea to convert the script into Java, so as to give it multi-threaded capabilities? Will this even run each request in parallel like I think it would or am I misguided to believe so?

Any other suggestions are welcomed.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:11:01+00:00Added an answer on May 22, 2026 at 6:11 pm

    First, rewriting your script in Java is not going to magically make it multithreaded, and unless you have experience with concurrent programming I would avoid this. Even then this doesn’t necessarily mean it will run faster than your PHP script.

    Second, PHP can execute multiple http requests in parallel using cURL’s multi exec functions. See the docs for curl_multi_init and curl_multi_exec for how to use them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a PHP script that I would like to use on several
I have a written a script in PHP that reads from data from a
I have written a php script that generates a list of links that match
I have written a PHP script that checks whether a domain is available for
I have written a php script that returns an arbitrary number of specific ids
I have a certain PHP script that calls exec() to execute a command to
I am trying to download some files. I have written a php script that
So I have a comments script I've written in Codeigniter that uses PHP and
I have an events calendar written in PHP, with the following pagination script that
So I have a script (written in PHP) that posts the user input of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.