![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#11
| |||
| |||
|
|
OK fine.. Doing this in that way do you think it is better ? - to read all data from database and store them in memory ready to be push when request ?. |
|
- or do you think I should read them from database each time a request is comming |
|
thnaks for help serge "Spam Catcher" wrote: =?Utf-8?B?Y2FsZGVyYXJh?= <calderara (AT) discussions (DOT) microsoft.com> wrote in news:CCF3D645-CBEA-40D1-BC0F-CDE259F374AC (AT) microsoft (DOT) com: What do you mean by publisher methode from my applciation side ? is it just the fact that it send data back to my cllient? He means to push the events from the server --> client. |
#12
| |||
| |||
|
|
Hi, Serge: See my inline comments. Analyzing your business requirements, select a proper way! Regards, Do you know batching, asynchrony and parallel computation with online compression? See the sample project SocketPro at www.udaparts.com "calderara" <calderara (AT) discussions (DOT) microsoft.com> wrote in message news:55586CB6-DA81-47CA-AC2F-DD97E6F51B8C (AT) microsoft (DOT) com... OK fine.. Doing this in that way do you think it is better ? - to read all data from database and store them in memory ready to be push when request ?. This is faster, but you may need to write code for synchronizing memory cache and backend database. Also, you may need to lock the memory cache if you need to access it from different threads. If your memory cache is too large, maybe this method is not a proper way. In short, if you can surely synchronize memory cache and backend database and memory cache is not too large, this way may be preferred. - or do you think I should read them from database each time a request is comming This way is simpler, but it is slightly slower because a request has to be sent to a backend database. thnaks for help serge "Spam Catcher" wrote: =?Utf-8?B?Y2FsZGVyYXJh?= <calderara (AT) discussions (DOT) microsoft.com> wrote in news:CCF3D645-CBEA-40D1-BC0F-CDE259F374AC (AT) microsoft (DOT) com: What do you mean by publisher methode from my applciation side ? is it just the fact that it send data back to my cllient? He means to push the events from the server --> client. |
#13
| |||
| |||
|
|
Doing this in that way do you think it is better ? - to read all data from database and store them in memory ready to be push when request ?. |
|
- or do you think I should read them from database each time a request is comming |
#14
| |||
| |||
|
|
SO storing in memory mind be ok, but what do you thing culd be the limit size for this time solution ? |
#15
| |||
| |||
|
|
=?Utf-8?B?Y2FsZGVyYXJh?= <calderara (AT) discussions (DOT) microsoft.com> wrote in news:55586CB6-DA81-47CA-AC2F-DD97E6F51B8C (AT) microsoft (DOT) com: Doing this in that way do you think it is better ? - to read all data from database and store them in memory ready to be push when request ?. I would store in memory and mirror the data to the database. Of course it depends on how many alerts your expecting. BTW, SQL Server 2005 has an notification service which can push database table changes as events. Might be worth to take a look. - or do you think I should read them from database each time a request is comming |
#16
| |||
| |||
|
|
HI, I do not need to keep syncronistaion of memeory with back end database becasue data which are pushed are configuration data that never change. There are not live data but more a predifine message structure base on a configuration. Whnen a request is coming, I should be abvle to send back message 1, message 2, or message 3 depending on the request... SO storing in memory mind be ok, but what do you thing culd be the limit size for this time solution ? regards "msgroup" wrote: Hi, Serge: See my inline comments. Analyzing your business requirements, select a proper way! Regards, Do you know batching, asynchrony and parallel computation with online compression? See the sample project SocketPro at www.udaparts.com "calderara" <calderara (AT) discussions (DOT) microsoft.com> wrote in message news:55586CB6-DA81-47CA-AC2F-DD97E6F51B8C (AT) microsoft (DOT) com... OK fine.. Doing this in that way do you think it is better ? - to read all data from database and store them in memory ready to be push when request ?. This is faster, but you may need to write code for synchronizing memory cache and backend database. Also, you may need to lock the memory cache if you need to access it from different threads. If your memory cache is too large, maybe this method is not a proper way. In short, if you can surely synchronize memory cache and backend database and memory cache is not too large, this way may be preferred. - or do you think I should read them from database each time a request is comming This way is simpler, but it is slightly slower because a request has to be sent to a backend database. thnaks for help serge "Spam Catcher" wrote: =?Utf-8?B?Y2FsZGVyYXJh?= <calderara (AT) discussions (DOT) microsoft.com> wrote in news:CCF3D645-CBEA-40D1-BC0F-CDE259F374AC (AT) microsoft (DOT) com: What do you mean by publisher methode from my applciation side ? is it just the fact that it send data back to my cllient? He means to push the events from the server --> client. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |