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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:04:35+00:00 2026-05-11T04:04:35+00:00

Like with browser games. User constructs building, and a timer is set for a

  • 0

Like with browser games. User constructs building, and a timer is set for a specific date/time to finish the construction and spawn the building.

I imagined having something like a deamon, but how would that work? To me it seems that spinning + polling is not the way to go. I looked at async_observer, but is that a good fit for something like this?

  • 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. 2026-05-11T04:04:35+00:00Added an answer on May 11, 2026 at 4:04 am

    If you only need the event to be visible to the owning player, then the model can report its updated status on demand and we’re done, move along, there’s nothing to see here.

    If, on the other hand, it needs to be visible to anyone from the time of its scheduled creation, then the problem is a little more interesting.

    I’d say you need two things. A queue into which you can put timed events (a database table would do nicely) and a background process, either running continuously or restarted frequently, that pulls events scheduled to occur since the last execution (or those that are imminent, I suppose) and actions them.

    Looking at the list of options on the Rails wiki, it appears that there is no One True Solution yet. Let’s hope that one of them fits the bill.

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

Sidebar

Related Questions

I would like to intercept any URL which the user enters in their browser
Can python be used as a language to develop browser based games? Like we
I've got a WPF browser-like application with a few pages. When I switch between
Is browsing speed depends on browser (like IE,firefox)? If it depends on browser which
I like to keep javascript debugging enabled in my browser so when I'm developing
I'd like to warn users when they try to close a browser window if
I'd like to write a Silverlight app that has 2 or more browser windows
I would like to host a silverlight control in winforms via a winforms browser,
I've been looking at ways to implement gmail-like messaging inside a browser, and arrived
When I build a site, I'd like to have at least one browser I

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.