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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:41:46+00:00 2026-06-02T03:41:46+00:00

I am implementing a game/application where the player’s account/state is synced to the server.

  • 0

I am implementing a game/application where the player’s account/state is synced to the server. I am contemplating a general framework communicating modifications of nested objects of an entity (the entity being the users’s account). Let us assume for discussions of computation/reflection that both the client and server are written in Java (in reality client is in Actionscript which can modify properties dynamically)

Take for instance Firebase. Modifications to any object of the root object (a Firebase object) are propagated with a request that probably looks something like:

Service: PersistenceService
Action: modifiedObjects
Body:
Objects [{"/full/Path/To/Object/1","newValue"},{"/full/Path/to/Object/2","newValue"}]

My request for your input is the following:

1) Please correct and/or augment the following thoughts on implementing this general framework for propagating modifications to a tree of objects.

On the sending side, it would appear that every object either:

1) Needs to store it’s full path from the root entity

2) Changes to properties of all nested objects need to be done reflectively

OR

A sync needs to forced, comparing the entity’s saved object tree from the last request to the current object tree for modifications.

On the server side, one can analyze the paths of the objects to cache objects that are accessed multiple times in one request so as not to access the tree by reference/search collections multiple times.

  • 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-06-02T03:41:48+00:00Added an answer on June 2, 2026 at 3:41 am

    The answer I have come up with is actually very obvious the obviously the best way to do it. The answer is to mirror a database of tables. Assign each object an id, and store every object in an ArrayList (or assign each object a unique ID based on type and store the object in its type’s ArrayList which is itself stored in a HashMap).

    I call my interfaces ServiceObject and ServiceContainer.

    Now the only thing I have to see that works is how json and protostuff serialize dual references to objects. Are they serialized as seperate objects? If so, than I any nested ServiceObject’s need to deserialized as references to the objects in the ArrayList.

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

Sidebar

Related Questions

I'm working on implementing a game server on AppHarbor for a tournament style game.
I have a Rails app implementing a game, so it's expected that a player
I am implementing game application.In which i have set UIView on camara overly.When i
I am implementing game application.In which there is some mosquito(object).They moves randomly on the
I'm implementing an iPad game and want to allow the player to buy an
What is a good architecture for implementing a real-time, multi-player Silverlight-based game that is
I have an air application that I'd like to turn into a multi-player game.
i am implementing one game application in this application i am using shared preferences
I am implementing game application.In which i am using layer for animation. CGMutablePathRef path
i am implementing puzzle game application in this application create one button in click

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.