caching - Is it feasible to put frequently changing data in cacheworker role in azure? -


in trading application data changes in each second. putting data in datacache object in worker role

public class tradedata   {       public int loginid;       public double price;       public long time;       public int profit;       public string quote;       public double commission;   }  putting data in cache in infinite loop datacache dc = new datacache("trade") while(true) {   tradedata[] tradeinfo = getdatafromapi();   foreach(var t in tradeinfo )   {      dc.put(t.loginid.tostring(),t)   }  } 

is feasible put changing data in cacheworker role in azure?

short answer: depends yes

i'm assuming you're using cache data distribution mechanism - instead of going storage consumers going cache find latest values. saves on performance cost of table storage transactions

writes , reads cache going fast. if not enable redundancy in dedicate cache, cached data stored in 1 place - not putting burden onto cache nodes duplicate changing data.

do aware if care more data accuracy data performance, you'll want consider going durable central storage instead of cache.

if going use cache, implement dedicated cache , not collocated cache , use less of more powerful servers rather more of less powerful servers.

hth


Comments