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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:36:54+00:00 2026-05-19T17:36:54+00:00

Okay, here is my situation: I’m looking for the best design approach. I’m working

  • 0

Okay, here is my situation:
I’m looking for the best design approach.
I’m working in PHP/Smarty on the server-side and HTML/jQuery for the client-side, but that is not really important here.

I have this multi-user system on my server.
It is a kind of ordering system.
A standard user — let’s call them customer — can order some items from the webshop.
The webshop contains items from multiple sellers.

When the user (customer) places the order, the seller — also a user in the system — has to get notified that there is a new order and confirm/decline it.

When the seller confirms/declines the order, a notification has to be send to the user giving him/her the status of his/her order.

Orders are stored in the database, as well as order confirmations.

The only way I can think of right now is to constantly — in short intervals with AJAX — check for new records in the database, from the sellers’ screen, and do the same thing for the customer when he/she is waiting for the confirmation.

But I’m thinking, is there any way to trigger notifications to the seller when the user(customer) places the order so the seller could load the database only when needed and not constantly in intervals?

The same goes for the customer when he/she is waiting for confirmation. But that is not so important because it doesn’t happen all the time. There is a waiting limit when the order will be automatically declined if the seller doesn’t respond.

I hope you understand my question.

  • 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-19T17:36:55+00:00Added an answer on May 19, 2026 at 5:36 pm

    The answer to a similar question here on Using Comet with PHP suggests that there could be some problems with Apache threads being tied up from all the open connections to the client.

    According to this blog post on PHP Continuations, it is possible to use continuations with PHP, but there just doesn’t seem to be as much documentation on the subject. However, CometChat did it in PHP. It’s not clear if they are using continuations, but they claim to scale to 100,000 connections. More information on PHP Comet can be found in this similar Stack Overflow Question regarding A Solution for Comet and PHP.

    I was also going to suggest using Java, as Java has a really great track record for implementing scalable Comet with Continuations. Conversion Support is an example of chat software that uses comet and continuations on a Jetty Web Server.

    Since your code is in PHP, you could Use Querces to run your PHP code on the JVM. Additionally, Querces PHP Benchmarks Suggest it’s Faster than Apache, which gives you added advantages. Check out the Querces Project for more information.

    UPDATE: I suggest you do your own benchmarks or research the speed issue yourself, as there may be some information that may suggest Apache is faster. If using Querces, it’s important to understand that you would essentially be writing Java that just happens to look and feel like PHP. Thus, I’d suggest additional research there as well so that you understand the advantages and disadvantages of this approach.

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

Sidebar

Related Questions

Okay, here is my situation. I have a page, index.php, which is the mainsite
OKAY! Here's the situation. I've got a jQuery plugin that's animating a background-image in
Okay here's my situation. I have a php file that contains a simple form
Okay here's the situation.... I'm working on a my business website. There will be
Okay here's my situation. I have the following branches development development-kirby (270 commits ahead
Okay, here's the situation: I've created a class extending Android's SQLOpenHelper class. I've also
Okay, here's the situation: We have a table of about 50 columns (created by
Okay so here's what I'm doing. I'm making a request to a server to
Okay so here is my situation. About a year ago I released my very
okay, here's the situation: <div> <a href=.. id=..></a> //similarly multiple links </div> when user

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.