notification of changes between apps on different pc's on the network

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jurjen de Groot

    notification of changes between apps on different pc's on the network

    I will be developping a planning application for wich it's necessary for
    multiple users to view and edit the same data, all changes made by one user,
    must be visible to the other user's more or less immediately (on their pc).
    So I'm looking for a mechanism with wich I can notify the 'other'
    applications on the network of any changes so they can update their 'view'
    if necessary.

    Although I think I'm capable of solving this problem by re-inventing the
    wheel, I'm pretty sure it's already been done, and probably better and more
    robust than my first few attempts would be... So can anyone help me out ?


    thanks,
    Jurjen.

  • Michel Posseth  [MCP]

    #2
    Re: notification of changes between apps on different pc's on the network


    Well i can think of 3 easy ways of acomplishing that


    1. if you use SQL server as database backend you could setup notification
    services the database performs a callback to your app whenever the dataset
    you subscibed to has a change

    2. You could create a change mechanism yourself ,,, actually i have done
    this a few years ago before we had notification services the following way
    let a trigger in your database create a new guid in a watch table
    whenever there are changes made in the main table ( you could even implement
    this with a low entry "database" as ACCESS however then you should do this
    from code .

    now when you app gets its dataset it will also retrieve the guid and compare
    this once in a while with a backgound thread to the current database value
    if it has changed if it has changed you know there are changes and thus need
    to update your working set .

    3. You could do a broadcast on the network whenever one of the applications
    perfomed a change on the dataset , then all running instances can update
    there datasets

    Maybe someone else has some more ideas !?

    regards
    Michel Posseth [MCP]
    ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.








    "Jurjen de Groot" <Jurjen.de.Groo t@xs4all.nlschr eef in bericht
    news:%23pD2Xt9H JHA.4408@TK2MSF TNGP06.phx.gbl. ..
    >I will be developping a planning application for wich it's necessary for
    >multiple users to view and edit the same data, all changes made by one
    >user, must be visible to the other user's more or less immediately (on
    >their pc). So I'm looking for a mechanism with wich I can notify the
    >'other' applications on the network of any changes so they can update their
    >'view' if necessary.
    >
    Although I think I'm capable of solving this problem by re-inventing the
    wheel, I'm pretty sure it's already been done, and probably better and
    more robust than my first few attempts would be... So can anyone help me
    out ?
    >
    >
    thanks,
    Jurjen.
    >

    Comment

    • Jurjen de Groot

      #3
      Re: notification of changes between apps on different pc's on the network

      Michel,

      thanks for your reply, in the mean Time I have found several articles
      concerning PublishSubscrib e scenario's and am looking into a solution
      created by juval lowy from idesign wich seem to do the trick,

      thanks.


      "Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
      news:eCZmDXuJJH A.740@TK2MSFTNG P03.phx.gbl...
      >
      Well i can think of 3 easy ways of acomplishing that
      >
      >
      1. if you use SQL server as database backend you could setup notification
      services the database performs a callback to your app whenever the dataset
      you subscibed to has a change
      >
      2. You could create a change mechanism yourself ,,, actually i have done
      this a few years ago before we had notification services the following way
      let a trigger in your database create a new guid in a watch table
      whenever there are changes made in the main table ( you could even
      implement this with a low entry "database" as ACCESS however then you
      should do this from code .
      >
      now when you app gets its dataset it will also retrieve the guid and
      compare this once in a while with a backgound thread to the current
      database value if it has changed if it has changed you know there are
      changes and thus need to update your working set .
      >
      3. You could do a broadcast on the network whenever one of the
      applications perfomed a change on the dataset , then all running instances
      can update there datasets
      >
      Maybe someone else has some more ideas !?
      >
      regards
      Michel Posseth [MCP]
      ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.

      >
      >
      >
      >
      >
      >
      >
      "Jurjen de Groot" <Jurjen.de.Groo t@xs4all.nlschr eef in bericht
      news:%23pD2Xt9H JHA.4408@TK2MSF TNGP06.phx.gbl. ..
      >>I will be developping a planning application for wich it's necessary for
      >>multiple users to view and edit the same data, all changes made by one
      >>user, must be visible to the other user's more or less immediately (on
      >>their pc). So I'm looking for a mechanism with wich I can notify the
      >>'other' applications on the network of any changes so they can update
      >>their 'view' if necessary.
      >>
      >Although I think I'm capable of solving this problem by re-inventing the
      >wheel, I'm pretty sure it's already been done, and probably better and
      >more robust than my first few attempts would be... So can anyone help me
      >out ?
      >>
      >>
      >thanks,
      >Jurjen.
      >>
      >
      >

      Comment

      Working...