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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:04:18+00:00 2026-05-21T00:04:18+00:00

I am building a cafeteria management system in which there are two types of

  • 0

I am building a cafeteria management system in which there are two types of users;customres & counter owners.

For each dish offered in cafeteria, there is aunique dish.id associated to it.

Till now, I have dome something like student sends a POST request with dish,id and counter number to a URL which updates the “orders table'(which has PK as id). When the dish is prepared, the counter owner presses “Prepeared” button.

At this point, I want the customer whose order is next to what is prepared to get notified that “Your order preparation is in progress.”

How should I do it?
One way is to simply make a view which has its argument as customer.id & status and it replies with True or Flase. I can simply poll the URL and provide the notification if I recieve True.

But, I feel like polling is not a better approach as there will be so many customers logged in and each will poll to the server which is not acceptible.
Any better way?

  • 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-21T00:04:19+00:00Added an answer on May 21, 2026 at 12:04 am

    It really depends what you really need.

    If notification can be sent ad part of user activity, simply add a user message, and it will be displayed whenever user do an action on the page. django.contrib.messages plus few lines in your main html template will do it.

    But if you want the notification to be interactive – you can use one of the few PUSH options

    Interesting links:

    • wikipedia on reverse ajax
    • comet

    From the servers side, there are few options available, the simplest is Green Unicorn. Using it will allow you to have few thousands connections open and managed by only few processes.

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

Sidebar

Related Questions

Building a new Mobile Web Platform for Mobile Users to purchase & download content
Building a website that has English & Japanese speaking users, with the Japanese users
building a site which has content for each section. urls range from; /work/ /work/print/
Building an iPhone application. The delegate loads a SplashScreenView which sits there until the
In building a content management system that incorporates jquery ajax into it's GUI I
Building on another SO question , how can one check whether two well-formed XML
Building a simple login page. If the user types in a password and password
Building a rails B2B application that will have various users. I'm pretty clear on
Building a site on CargoCollective, but it appears they use jQuery 1.4.2 which seems
Building on this question , is there a simple solution for having a multi-key

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.