none
how to keep cache on other server. RRS feed

  • Question

  • hi,

       

    My web server and database server, they consume their memory to their fullest.

    so I have decided to use the cache to improve performance. there are many techniques available in asp.net and SQL server to keep cache objects

    on the same server, but I want to keep it on other servers ( that is the third server).

         I can use web farms for the purpose but I do not want to use it. so except web farms, is there any other way exists where I can keep the cache on the third server?
    note: I do not want to use remoting and  we are not using core also

    yours sincerely

    • Edited by rajemessage Wednesday, November 28, 2018 10:43 AM
    • Moved by CoolDadTx Wednesday, November 28, 2018 2:57 PM ASP.NET related
    Wednesday, November 28, 2018 10:26 AM

All replies

  • My web server and database server, they consume their memory to their fullest.

    Web server and database server shouldn't be on the same machine. 

    It kind of sounds to me that you are not using a distributed application architecture, such as using n-tier.

    https://docs.microsoft.com/en-us/visualstudio/data-tools/n-tier-data-applications-overview?view=vs-2017

    https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ee658117(v=pandp.10)

    so I have decided to use the cache. there are many techniques available in asp.net and SQL server to keep cache objects

    That sounds kind of questionable to say the least about it, becuase caching objects is a finite and minute thing that shouldn't be taken lightly. 

    Maybe, your problem is that you are using a inproc ASP.NET solutions instead of using a  computer server machine as a state server or a state server using MS SQL Server.

    Maybe, you need to be using a frontend Web server and a backend Web server within the infrastructure to distribute the load.

    But to say that you are going to start caching all over the place is probably not an optimal approach that could lead to more memory problems. 

    Anyway, you are posting to the wrong forum for help.

    The two forums you should post to for help

    https://forums.iis.net/

    http://forums.asp.net/


    Wednesday, November 28, 2018 11:07 AM
  • Hi buddy,

    Make sure on your code is using garbage collector ... In transactions with your database, and others class that using class implementations using the Dispose().

    See more:  Garbage Collection

    This tips, is only a of things that can be used !

    Wednesday, November 28, 2018 11:13 AM
  • thanks for the forum, and there are two servers, separate for each, I want to add the third one.
    Wednesday, November 28, 2018 12:56 PM
  • thanks for the forum, and there are two servers, separate for each, I want to add the third one.

    The 3rd machine should probably be a ASP.NET state server.

    http://www.beansoftware.com/ASP.NET-Tutorials/Store-Session-State-Server.aspx

    <copied>

    One more problem is scalability. Since data are stored in process, server quickly runs out of memory which decreases performances. On high traffic website, session data of thousands users easily overburden web server.

    <end>

    Wednesday, November 28, 2018 2:03 PM
  • This is really an ASP.NET caching issue as ASP.NET has many caching options depending upon your needs. Please post your question in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, November 28, 2018 2:56 PM