python - Serve dynamic data to many clients -
i writing client-server type application. server side gathers changing data other hardware , needs pass multiple clients (say 10) display. server data gathering program written in python 3.4 , run on debian. clients built vb winforms on .net framework 4 running on windows.
i had idea run lightweight web server on server-side , use system.net.webclient.downloadstring calls on client side receive it. multi-threading async stuff done me web server.
questions:
- does seem approach?
- having data gathering program write text file web server serve seems unnecessary. there way have data in memory , have server serve there no disk file intermediary? setting ramdisk 1 solution thought of seems overkill.
- how web server deal data being updated, say, once second? webservers deal elegantly or there chance file served whilst being written to?
thanks.
1) not familiar python, .net application want push change notifications it, rather pull. system.net.webclient.downloadstring request (pull). not python developer cannot assist in that.
3) requesting data, possible create errors of read/write while updating , reading @ same time. if not happen data may out of date read it. can acceptable problem, depends of how critical data is.
this why push notification rather pull. if worked correctly can keep data synced , avoid timing issues.
Comments
Post a Comment