|
Did you just use the 'B' word in your post?
How very dare you - I am currently holding up my handbag with two hands with a shocked look on my face.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
You also make a reference to Hell; how dare you?
Please change your signature to "Legitimate-Born Programmer from Heaven" ASAP, so that we, innocent developpers, are not freaked out anymore.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
I think having the database push a notification every time a share changes a price will kill your server(s) very very fast.
Instead what I'd do is make the client do the call to an exposed webservice that return the data requested, interesting part will be to be able to somehow cache the results if they haven't changed, so instead of calling the database every time you can serve a cached version of the data that will be extremely faster.
Using the client to do the calls you can guarantee that only connected clients get the notification for the amount of time they remain connected, with the webservice + cache you reduce the load to the server(s) and the database.
For a better idea visit google finance so you can see what they do there.
Now if it has to be the server, I'd use a middleman, a server or component that gets the notification from the database, then multithreading all the push notifications to the registered clients, still I think this is an overkill, what happens if you have 3K clients and 500 are offline?, you will have to handle a timeout for the communication that will reduce the number of threads available for that amount of time, and what if additional to those 500 you have another 500 with very slow response times, this makes your push notifications not "live", go for the client solution
I want to die like my grandfather- asleep, not like the passengers in his car, screaming!
|
|
|
|
|
thanks for your time. suppose if i cached data and web service will pull data from cache and push those data to all connected clients. if i design that way then after every certain interval my web service need to pull data and push data to all connected clients. i guess web service constantly do the polling to hit the cache.
i want a good mechanism like that i need to push only change data not all data from cache.
really looking for details information that how people manage to developed this kind of apps with good scaling.
tbhattacharjee
|
|
|
|
|
You're over thinking the problem, define first what needs to be done, clients, devices, server(s), etc, you can scale an application as much as you want today, but scaling is not just software, also hardware, so if you have a poorly designed approach to your problem, your scaling will be very expensive.
Think of this, you want to send push notifications on every share change, I don't know from which stock exchange, but if it is the american one you will have to scale really fast, a stock price can change several times every minute, so imagine I'm supposed to be getting those push notifications, 12 times in 1 minute, 20 times... that means your application has to create 20 instances just for me in 1 minute, now make that for 100 users... 2000 push notifications in 1 minute, now multiply for 500 users, 10K push notifications, how much resources will this require for your application?, what will the response time? how are you going to handle communication errors? slow communications?
Like someone said, start with a good design and from there build a prototype, we can give you more questions than answers, we don't know your requirements, start with the basics
I want to die like my grandfather- asleep, not like the passengers in his car, screaming!
|
|
|
|
|
suppose think you are in same situation where you need to push data change in db to many windows client but you do not know how many client may run your apps in future. so tell me how do you write your application.....what kind of logic you would use for better performance and faster notification push to client. looking for your guidance.
thanks
tbhattacharjee
|
|
|
|
|
I can't give you an answer without knowing the requirements, so at this point the suggestion is, go to the drawing board, start doing your design, create your prototype, then come back with specific answers related to your development
I want to die like my grandfather- asleep, not like the passengers in his car, screaming!
|
|
|
|
|
Right now, I would suggest that you search Google and here in CodeProject for details of a product called SignalR. You have a lot of reading ahead of you, but this should help show you better, what you need to consider.
|
|
|
|
|
As Pete has suggested look at SignalR its a great library, have a look at this article Streaming live results to a web site using MSMQ/Duplex WCF/SignalR/jQuery[^] by Sacha Barber and Richard E King.
might be overkill for your needs but it shows you what you could potentially achieve.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
I am looking for Fuzzy Set Class such as fuzzification.cs,Defuzzification.cs,Fuzzy-Inference(Mamdani).cs in C#.net for developing an web_ based expert system. Could somebody help me please?
|
|
|
|
|
I am getting fairly fed up with you posting the same request, getting told the same thing, and deleting your questions because you don't like the answer.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hi,
I did not delete anything.But I received an email from the site manager that my question had been deleted.
So I repeated it again.
Sorry if I bothered you, unintentionally.
|
|
|
|
|
1. Do not cross post.
2. What exactly do you need? No one will give you all the code you want. We'll gladly help with specific questions though.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I read somewhere that these codes are open source and everybody can access.
|
|
|
|
|
sudabeh3 wrote: codes are open source and everybody can access. I guess you can just google for them then. I'm not familiar with them.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I already asked you in your Q&A question: Where did you get these file names from?
How much sense would it make to you if I asked you "where do I get the files SchemaReader.cs and BaseRecordSchema.cs from" ? No sense at all. That's how we see your question. If you didn't just make those file names up you should ask that question where you learned about those files.
|
|
|
|
|
|
Just a bit unnerved. I googled those filenames. Your questions show up as first results. Do you know what this probably means?
|
|
|
|
|
Sorry; that is advanced technology that we are prohibited from exporting.
|
|
|
|
|
|
Hi I want to replace only 5 digit (not less than or not more than) to “xxxxx” with Regex
I tried -
InputString = "sample1: 12345 – sample2 : 123456789"
Dim regExp As Regex = New Regex("(\d{5})")
regExp.Replace(InputString, "xxxxx")
output - "sample1: xxxxx – sample2 : xxxxx6789"
But i want as "sample1: xxxxx – sample2 : 123456789"
if more than 5 digit , it must not replace.
|
|
|
|
|
Add a whitespace and an "end-of-line" indicator:
Dim regExp As Regex = New Regex("\s(\d{5})$") And include the whitespace back in your replacement string.
And in future: post VB in the VB forum, and C# in the C# forum?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It was exactly a C# question and not VB. I wonder why this simple question have made all nervous! it was related to Fuzzy Logic and Fuzzy Expert Systems.
Anyway, thanks a lot for your all answers.
|
|
|
|
|
You have replied to someone else's question. The question that was asked here was written in VB.
|
|
|
|
|
If you look at the question I answered, you will see it is written in VB, not C#...
Dim regExp As Regex = New Regex("(\d{5})")
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|