c# - Single Database and Many Users Desktop Application -


i new concept need guidance best use in following scenario.

i have make desktop application contains many features parts stock ,employees data,company cars data etc etc.

now problem many users using application , offices situated in different cities in application installed.

i want scheme if 1 uploads data database other gets reflection , other instantly gets updated.for example if more cars added using gets cars list updated.

i having idea use webservices , data should stored somewhere on website database everyone's application refreshes lists every 20 seconds or so.

any appreciated

you wouldn't reload data constantly; there couple of common approaches here:

  • keep list of changes; if add new data add primary data record and write fact change happened (essentially "events" list). can query change log periodically , additions/updates/deletes asking events after (x)
  • if infrastructure allows, kind of pub/sub framework - same approach typically using middleware changes, rather main db

re how data; polling simple , effective; active pushing harder setup may reduce latency - not sure worth here

another approach, though, design web app - data lives @ server-farm , trivial update immediately. "desktop" app web page using ajax


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -