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

The Archive Base Latest Questions

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

I am planning on experimenting with realtime game development using html5 and node.js. I

  • 0

I am planning on experimenting with realtime game development using html5 and node.js.
I previously made a game using polling to simulate real-time updates in a game.
My real-time game would use AJAX to keep the game synchronized across multiple clients. Basically whenever a change in game state occurred, I would update a field last_updated in the database row concerned. Whenever a client polled the server, it would check for any updates that occurred since its last poll returning any relevant updates (doing this by comparing the previous poll time to the last_updated fields).

In my new version of the game where I instead use node.js (and web-sockets) I would like to avoid a mechanism like this where I have to continually do searches to a database to find if there were updates. I was wondering if there were alternative methods to storing important game state information, without the use of a database in this mannor.

I would really like to be able to setup events to fire on all clients when game state is changed instead of having to continually check for changes as this would save a large amount of processing / querying. I don’t really know if an event fired on one client can be sent to other clients also connected to my node.js running server. I have always used a database for this sort of thing, but I am really hoping there are other better alternatives?

Cheers, Josh

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

    First of all you need something like Socket.IO to handle the websockets (and long-polling etc if WS not available).

    After that you need Redis or ZeroMQ to scale Socket.IO (by scaling I mean multiple processes even multiple servers). You could also use CouchDB‘s _changes event for that. (which could let you know when an insert/update has occurred)

    As for the storage engine, I suggest you use either MongoDB (really good for writes, that’s what you need) or a combination of Redis (reading from memory) and CouchDB (for writes).

    All of them have Node.js libraries, which you can checkout on the modules page https://github.com/joyent/node/wiki/modules or you can find them on their websites (on the dbs websites).

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

Sidebar

Related Questions

I´m planning to create a WebGL-based, realtime strategy game, where players are able to
I'm planning on creating a game that contains a landscape with objects on it.
I am planning on experimenting with NServiceBus on Mono to be deployed on Unix
Ok i am planning on using the configparser module for creation of a few
I'm planning to store player stats in a database for a game, and need
I am planning a new application and have been experimenting with GWT as a
Am planning on using declarative authorization in a Rails 3 app. I have the
Am planning on using declarative authorization in a Rails 3 app. I have the
I'm planning on running a machine learning algorithm that learns node values and edge
Planning of using t4 template in a production environment. I have not used this

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.