|
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...
|
|
|
|
|
how can we convert a code written in c# into matlab??
any idea?
|
|
|
|
|
Already answered in the .NET forum. Crossposting is discouraged.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
can any help..
in this code the first letter of any string in the problem SEND + MORE = MONEY should not be 0. but its showing showing zero..
how to do this???
please help....
namespace CryptArithmetic
{
public partial class Form1 : Form
{
char[] s1 = new char[10];
char[] s2 = new char[10];
char[] s3 = new char[10];
int[] assinged = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
char[] c = new char[11];
int[] val = new int[11];
int topc = 0;
public Form1()
{
InitializeComponent();
}
private void btn_ok_Click(object sender, EventArgs e)
{
label4.Text = "";
s1 = textBox1.Text.ToCharArray();
s2 = textBox2.Text.ToCharArray();
s3 = textBox3.Text.ToCharArray();
int flag=0;
//to check if no letter is repeated and store unique letters in array c[] from s arrays
for(int i=0;i<s1.length;i++)
{
="" for(int="" j="0;j<=topc;j++)
" if="" (s1[i]="" !="c[j])
" (i="=" 0)=""
="" i++;="" flag="1;
" }
="" else
="" break;
="" if(flag="=1)
" c[topc++]="s1[i];" i="0;i<s2.Length;i++)
" if(s2[i]!="c[j])
" if(s3[i]!="c[j])
" }
="" (solve(0,="" assinged)="=1)
" label4.text="" +="\n" c[i]+"---="">"+val[i].ToString() + "\n";
}
else
label4.Text = "Sorry";
}
//-------------------end of getdata-----------------
int solve(int ind,int []temp1)
{
int [] temp2 = new int[10];
int flag=0;
for(int i=0;i<10;i++)
{
if(temp1[i]==0)
{
for(int j=0;j<10;j++)
temp2[j]=temp1[j];
temp2[i]=1;
val[ind]=i;
if(ind==(topc-1))
{
if(verify()==1)
{
flag=1;
goto exit;
}
}
else{
if(solve(ind+1,temp2)==1){
flag=1;
goto exit;
}
}
}
}
exit :
if(flag!=0)
return 1;
else
return 0;
}
int verify()
{
long n1=0,n2=0,n3=0;
long power=1;
char ch;
int i=s1.Length-1;
int in1;
while(i>=0)
{
ch=s1[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n1+=power*val[in1];
power *=10;
i--;
}
power=1;
i=s2.Length-1;
while(i>=0)
{
ch=s2[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n2+=power*val[in1];
power *=10;
i--;
}
power=1;
i=s3.Length-1;
while(i>=0)
{
ch=s3[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n3+=power*val[in1];
power *=10;
i--;
}
if(n1+n2==n3)
return 1;
else
return 0;
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void btn_cancel_Click(object sender, EventArgs e)
{
textBox1.Text = " ";
textBox2.Text = " ";
textBox3.Text = " ";
label4.Text = "";
}
}
}
|
|
|
|