none
API to Cache results of WCF Response RRS feed

  • Question

  • Hi,

            I have a WCF service that will take a request and will give the response. Request consist of Two values and Response consists of all the records in the DB that Match input values of the Request.

    I want to build a API layer above this that will take the two values as input and pass it to the WCF Service and then return the same response that WCF service is returning.

    But the main reason that i want to implement the API around the WCF service is to Cache the results of the WCF Service.  I want the API not call the WCF Service everytime the request is same.  The request will be same normally. API should be able to return the results with out calling the WCF Service.

    Can u please let me know how to implement this.

    Thanks,

    -Prasad


    -Prasad

    Tuesday, March 5, 2013 7:29 PM

Answers

  • Hi Parsad,

    In my opinion , your best bet would be to use Enterprise Library Cache.
    http://msdn.microsoft.com/en-us/library/ff649551.aspx

    If you are using library with ASP.NET app only , you can use ASP.NET Cache too but that would be too specific so i would say go for Enterprise library Application Cache which provides you quite a bit configuration options.

    I hope this helps !

    Thanks,

    BR,

    JollyWagoner

    Tuesday, March 5, 2013 10:30 PM

All replies

  • Caching in WCF can meet the requirement.

    Refer http://stackoverflow.com/questions/922116/caching-in-wcf


    Apriori algorithm [association rule]

    Tuesday, March 5, 2013 10:27 PM
  • Hi Parsad,

    In my opinion , your best bet would be to use Enterprise Library Cache.
    http://msdn.microsoft.com/en-us/library/ff649551.aspx

    If you are using library with ASP.NET app only , you can use ASP.NET Cache too but that would be too specific so i would say go for Enterprise library Application Cache which provides you quite a bit configuration options.

    I hope this helps !

    Thanks,

    BR,

    JollyWagoner

    Tuesday, March 5, 2013 10:30 PM