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

  • Home
  • SEARCH
  • 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 3960836
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:54:10+00:00 2026-05-20T02:54:10+00:00

I developed a board game app (for android/iphone) and added a multiplayer component to

  • 0

I developed a board game app (for android/iphone) and added a multiplayer component to it. Was thinking of using app engine (java) for the backend, so implemented that way, but turns out the cpu costs are probably going to be too high (app engine is probably not the best choice for this sort of app).

I don’t have much experience with php’s performance, am wondering if anyone can give me an idea if I’m heading down a bad path translating it to php. Basic steps would be:

  1. Http request is made to my server, player is trying to perform a move (it’s a turn-based game).
  2. Fetch game state from database. This will probably be stored as a flat json string (there’s not much point to creating a schema for the gamestate).
  3. Deserialize json string into workable gamestate objects (like houses, cars, etc).
  4. Perform gamestate manipulations finally (like moving the player’s car to a new house etc).
  5. Serialize modified gamestate, persist back to database.
  6. Send json response back to player, which will contain updated gamestate.

I don’t know if that’s a lot of work to try doing in the context of a single http operation. Some numbers:

  1. Expecting about 500 players using the service at any given time.
  2. Each game consists of only 2 to 8 players, each game is completely independent.
  3. The json gamestate object is about 25k in size when serialized.
  4. The json gamestate object will have to deserialize about 300 objects to restore the complete state of the game (houses, cars, etc).

Is this unrealistic? The best solution I think would be to get a dedicated server, and just leave all the gamestates in memory, but I’m trying to get by with some of the shared hosting platforms for now. This means I have to keep going back and forth to the database to get gamestate, deserializing and serializing.

Thanks for any thoughts

  • 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-20T02:54:11+00:00Added an answer on May 20, 2026 at 2:54 am

    This sounds ok. You may want to consider using a NoSQL database such as MongoDB if you are just going to be storing json, but this may not be available on a shared host.

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

Sidebar

Related Questions

I'm using the java swing library to develop a board game called DAO. The
I'm working on a turn based board game for iPhone and eventually Android. I'm
I am going to develop a Tic-Tac-Toe game using Java(or maybe other OO Languages).
My company has developed a long standing product using MFC in Visual C++ as
I've developed an equation parser using a simple stack algorithm that will handle binary
I'd developed a WCF Service using netTCPBinding and embedded it in a Windows Service.
We developed a website for a client and he has purchased the .com, .net,
I developed a greasemonkey script that refreshes a page and checks for certain updates.
I developed in ASP.NET 2.0 for some time, and for slightly less time in
I developed a small winforms application for myself in Microsoft Visual Studio 2008 Professional

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.