Skip to main content
Question Protected by gnat
Tweeted twitter.com/StackSoftEng/status/1032146035777433605
added 26 characters in body
Source Link
hulkmeister
  • 827
  • 1
  • 9
  • 18

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked at are Observer and Mediator - are there others that should be considered over these?
  1. Say there are two users changing the same task at the same time.
    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This also includes a little of 2involves the situation in 1 because user 1 could submit the data and before user 2 receives the updateupdated data, he/she may have gone ahead and submitted his/her's alreadychanges.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked are Observer and Mediator - are there others that should be considered over these?
  1. Say there are two users changing the same task at the same time.
    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This also includes a little of 2 because user 1 could submit the data and before user 2 receives the update data, may have submitted his/her's already.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked at are Observer and Mediator - are there others that should be considered over these?
  1. Say there are two users changing the same task at the same time.
    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This involves the situation in 1 because user 1 could submit the data and before user 2 receives the updated data, he/she may have gone ahead and submitted his/her's changes.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

edited title
Link
hulkmeister
  • 827
  • 1
  • 9
  • 18

Syncing How do you handle multiple users editing the same piece of data in the view with multiple interactionsa webapp?

deleted 203 characters in body
Source Link
hulkmeister
  • 827
  • 1
  • 9
  • 18

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked are Observer and Mediator - are there others that should be considered over these?
  1. Conceptually, how should the following case be handled? A task is changed, and before the user's view can be updated, the user acts on the task before it receives the change from the master list.

  2. Say there are two users changing the same task at the same time.

    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  1. Say there are two users changing the same task at the same time.
    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This also includes a little of 2 because user 1 could submit the data and before user 2 receives the update data, may have submitted his/her's already.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked are Observer and Mediator - are there others that should be considered over these?
  1. Conceptually, how should the following case be handled? A task is changed, and before the user's view can be updated, the user acts on the task before it receives the change from the master list.

  2. Say there are two users changing the same task at the same time.

    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This also includes a little of 2 because user 1 could submit the data and before user 2 receives the update data, may have submitted his/her's already.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an authorized user. Each user has his/her own account to login and view the tasks they are assigned; it is possible for multiple users to have a single task in-common.

I am trying to leave details of the project out of this as I'm grappling more with the overall concept of how to handle the following situations, but if it helps, I'm using Java, EclipseLink, and GWT with RequestFactory implemented. The database is PostgreSQL.

So the conceptual problems I am attempting to reconcile are the following:

  1. If a single task that is common to multiple users changes in any way e.g. task completed, deleted, etc., the task list of all the users who have this task will be updated. What design patterns are there that assist in implementing this function?
  • Some patterns I have looked are Observer and Mediator - are there others that should be considered over these?
  1. Say there are two users changing the same task at the same time.
    • First, should I allow that situation to happen or should I put a lock on it until one or the other person is done making changes?
  • Second, if I don't put a lock on it, how do I reconcile whose changes to accept? This also includes a little of 2 because user 1 could submit the data and before user 2 receives the update data, may have submitted his/her's already.

I am really looking for any guiding points, advice, or tips you can provide on how to properly sync data between multiple instances of this web app. I would very much appreciate it!

Source Link
hulkmeister
  • 827
  • 1
  • 9
  • 18
Loading