Data push implementation
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
Hi I'm no web expert, so don't take the following too serious :) It is not entirely clear for me if you have a specific client in mind or if a browser would do just as fine as parts of the existing vb.net app. It depends on your possibilities to host the server solution. If you have access to port 80 of a public ip address on a machine which can run the vb.net app, then i think that splitting the existing app in a server and a client part could be the quickest solution and it would preserve the original UI. If there's no easy solution for push notification then maybe polling could already be sufficient, depending on the available server capabilities and the number of targeted clients. I googled for "simple vb.net http server" and found the following results interresting: Embedded .NET HTTP Server[^] http://stackoverflow.com/questions/6883364/simple-net-based-http-server[^] http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=784[^]
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
take a look at SignalR http://signalr.net/[^]
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
-
JMU Duuuukes wrote:
and the web server pushes data to a client on any network.
Why does it have to push the data? Why can't the clients poll for it?
Thanks everyone for the input! The reason I'm trying to stay away from polling is that I need it to be "real-time" notifications. I started with a model polling every few seconds but realized that probably was impractical for many reasons. Soon after I posted this question I began experimenting with DropBox (See I said I just needed to walk away from the problem for a moment); I have a file generated server side that drops into a folder synced by DropBox and then any client connected online would see that file pop up on creation. It's crude but that's basically the model I want and it works well until I have a solution finalized. Heck I may just use DropBox for this but it's probably a violation of their terms of service. These all look like great places to start working.
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
How about the common chat-room idea where there is a server and clients. There are tons of examples of various implementations bases on TCP. In your case if I undestand correctly you only need the server to send messages (xml) to the clients. If you need some links, let me know.
Cheees, Edo
-
How about the common chat-room idea where there is a server and clients. There are tons of examples of various implementations bases on TCP. In your case if I undestand correctly you only need the server to send messages (xml) to the clients. If you need some links, let me know.
Cheees, Edo
That sounds like it is exactly what I need. If you know of any great links please do share them.
-
That sounds like it is exactly what I need. If you know of any great links please do share them.
-
I'm working in VB.NET. Thanks.
-
I'm working in VB.NET. Thanks.
-
Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?
Its quite tricky, but try to post this question at likeplum. I always get good answers there to my computer/programming issues and questions. They have programmers online to help you now. You can get a great answer to your question so fast. https://www.likeplum.com/help/programming?aid=3321