Skip to main content
Home Forums Silverlight Programming WCF RIA Services can i make a ria call that waits for a value to change in the database to return the new value?
5 replies. Latest Post by max_pau on November 27, 2009.
(0)
Wigen
Member
3 points
16 Posts
11-06-2009 7:07 PM |
I want to be able to monitor a table and wait for a value in a row to change, so i can bring back some values. How could i do this on the server side?
Ardman
Contributor
3434 points
946 Posts
11-07-2009 5:48 AM |
Try googling for Push services. I'm not 100% sure if this is included as part of RIA services, but I know that you can push data from the Server to the client.
prujohn
3579 points
704 Posts
11-07-2009 11:41 AM |
Push is not included in RIAS.
11-09-2009 4:30 PM |
Could i somehow have a service in a loop until a value changes? or will this be murder on the cpu?
11-09-2009 4:51 PM |
It depends on what your requirements are. Do you need to know about the changes the split second they happen, or is it tolerable to poll for changes every 30 seconds? If the latter, then setting up a polling timer should not be that much of an issue. However, you need to always consider scalability issues, such as how many concurrent sessions do you expect to have (again this goes back to your app requirements) .
max_pau
218 points
66 Posts
11-27-2009 7:51 AM |
Wigen, look at my article
it describes how you can monitore your database and get notifications about changes