Avatar of techques
techques
 asked on

How to store the data in memory and make it accessible by all active sessions

Hi

I have a game which needs to show the ranking of the winner. there is a winner table and it needs to be updated per second.

In order to reduce the number of all active sessions to connect to the database, I would like to store the calculated result of winner table in memory.

How should I do that in VC#, ASP.NET and MSSQL 2005?

.NET ProgrammingASP.NETMicrosoft SQL Server 2005

Avatar of undefined
Last Comment
techques

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dampsey

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
eridanix

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
HarryNS

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
techques

ASKER
I use a windows service to update the table. Can i create the cache memory in windows service and let another web service to call that cache memory to retrieve the cache data and present it in aspx?
techques

ASKER
I read http://www.codeguru.com/csharp/.net/net_general/performance/article.php/c10973__2/
and installed http://www.microsoft.com/downloads/details.aspx?FamilyId=4C557C63-708F-4280-8F0C-637481C31718&displaylang=en

But, how should I write the code for windows service to add and get data with caching?

I use MSSQL 2005, C#, dot net 2.0.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes