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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:50:03+00:00 2026-06-13T09:50:03+00:00

My app processes bookings, and upon process I would like it to send the

  • 0

My app processes bookings, and upon process I would like it to send the booking details to whichever of my app’s partners made the booking, so they can store a reference to the booking, AND without hold up the other processing my app has to do.

I’ve thought about how to send a message to a partner, and my solution would be to send a cURL POST request to whichever of my partner’s is making the booking (besides answering my question maybe someone has a better solution than this?).

Each partner would have a specific URL that they would setup to receive this POST request and store the booking information we send them.

THE PROBLEM:
If we try send this POST request and their web server is slow or down then we may wait unnecessarily long to get a response, which in turn would delay the confirmation of the booking of the actual user making use of our service.

IDEAL SOLUTION:
I would like to send this PHP cURL request in another thread so we can continue on our merry way and confirm the booking. If in the other thread there is a delay, this will not hold us up.

Other solutions I have considered are:

  • Calling an external script (e.g. written in python) to send this request. I’ve read that using exec() can be very resource intensive. We have lots of bookings so we would be sending lots of these booking POSTs. So ideally we need something resource conscience.
  • Using sockets. I’m not familiar with the configuration of these and I’m worried about our socket server being down. It also feels like a mission to maintain. Maybe I’m wrong?
  • Using a service like Pusher which is effectively a socket service. The disadvantage is that if the listener misses a message they will never get it again. E.g. the partner would miss storing that booking.

It would be great to get some feedback about what I’m trying to accomplish here, especially from someone that has been in need of a solution for the same kind of situation I’m in. Thanks for any help!

  • 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-13T09:50:04+00:00Added an answer on June 13, 2026 at 9:50 am

    So essentially you are creating an API in PHP that other clients consume. here is what I would suggest:

    1. Let your clients make requests to you, via POST/GET method; instead of you as a API server trying to push data to your clients. that is much better approach because it frees you with things client’s server down, slow or something else. So when they send you a request, it means they are fully capable for handling response.

    2. use HTTP persistent connection: in apache its called keep-alive set its value to high, so clients can reuse existing connection & thus reduced latency.

    3. For multiprocessing in php, have a look at
      Getting into multiprocessing
      . Basically, there is pcntl_fork() function which allows you to fork a process & create new child process for multiprocessing.

    4. Implement a background job que based on redis or something similar. idea is that all long running jobs gets dropped into the background job que & then a worker is spawned for each task so these jobs are executed via multiprocessing. PHP Workers with Redis & Solo

    Hope it helps

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

Sidebar

Related Questions

I am making a Process-Viewer like app. in windows which displays all the processes
In my android app, there are two processes, let's say process A and B
What would be the process for BlackBerry App World to submit new release of
My Erlang app will create up to 1'000'000 processes. Each process will be a
I'd like to filter out everything from the log, except for my app's processes.
I have a web app that has a few processes that can take up
I'm in the processes of internationalizing an iPhone app - I need to make
If I F5 a Windows 8 JavaScript app and look at the processes pane
I have a WPF application, after closing the app its process app.exe *32 is
I implement an app with some list of process IDs. I used Runtime.getRuntime().exec(ps) to

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.