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 9210817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:09:45+00:00 2026-06-18T01:09:45+00:00

Multi Outbound Request – Curl Here’s the problem, I have several clients I have

  • 0

Multi Outbound Request – Curl

Here’s the problem, I have several clients I have to CURL outbound requests to. Say for instance I currently have 20 clients and I send around 100~1000 requests per minute to each of them. I also use CURL multi however it seems to have a limitation of how many requests it can make at a time and it will also depend on the longest CURL response for the entire routine to complete.

For instance I have the following clients:

Client 1
url: http://www.exampleclient1.com/process/

Client 2
url: http://www.exampleclient2.com/process/

… and so on

The main issue here is that I have a single script that does the job for every client. Say,

http://localhost/app/send/client1
> will send out the pending outbound queue to client 1's url 

http://localhost/app/send/client2 
> will send out the pending outbound queue to client 2's url

… and so on

The reason why I separated them is because there should be dedicated connections between clients and their latencies are different from each other. Some clients respond faster and have faster servers while some clients have slow servers or take more hops to reach.

Here’s my question: Is there a means to simplify this process? Because it’s a hassle that everytime I have to add a client to my database I’ll also have to add

http://localhost/send/newclient1 
http://localhost/send/newclient2
.
.
.
http://localhost/send/newclientn

to the list of cronjobs. Is it possible to put it in a single script instead so as my list of clients grow it will not affect the overall performance of the outbound CURL function I have?

By the way, I’m using PHP, CURL. If there’s a solution that recommends the use of another technology other than PHP for this, a linux queuing manager…etc, you’re welcome to suggest.

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-06-18T01:09:46+00:00Added an answer on June 18, 2026 at 1:09 am

    I have similar problem that you face, common issues are:
    – Different response time of Resources URLs ( as you may call them clients )
    – The Demand of adding new URL you add one or ten at once.

    In addition to commons, my other observations:-
    – URL from different services providers,
    – with different data format
    – and they require different type of requests for what you want.

    I have reviewed couple of PHP-cURL libraries:

    • Rolling-Curl and Perallel-Curl , covered in this article .
    • PHP-Multi-curl (epiCurl) , this one I prefer.
    • multi-curl-php, code example .
    • phpmulticurl, Code Exmaple .
    • and there are other libraries and classes…

    Now managing the the database and clients’ send requests, you will at least well know RDBMS such MySQL or SQLite, other options RDBMS are considered.

    • In the RDBMS create a table that contains requests as in { “clientNo”
      => “URL” }
    • You can add your list of clients using PHPmyAdmin or any database management interface.
    • The Script: create a script that fetch the whole entry of database, one by one within foreach loop; preform creation on CURL node and adding handler to queue of multiple CURl calls.
    • test your script, and for production add it to cronjob.
    • every time you have to add a client , just add him to RDBMS (MySQL, SQLite ) using database management interface.

    NOTE: if you are doing outbound management, you have to consider security issues, proxy; and possible create PHP and HTML form for submitting new clients.

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

Sidebar

Related Questions

Currently working on a multi-tenant application, have an issue in generating identifier in a
I currently have heavily multi-threaded server application, and I'm shopping around for a good
Are multi-threaded CLR stored procs possible? I have a data-intensive task with lots of
Context: multi-user app (node.js) - 1 painter, n clients Canvas size: 650x400 px (=
I have a multi-array stored in a SESSION I loop through the data in
Implement multi-level hierarchies so that super user have also all rights that sub user
I have two multi select boxes one for country list and one for state
I have a multi-module maven project, like this: project A |-project B |-project C
i have a multi-module project and am stuck with this strange situation: command> mvn
My multi-threading knowledge is still pretty rudimentary, so would really appreciate some pointers here.

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.