Caching options for web api
I am building a webpage which has to show a paginated list in Angular. The paginated list will have approximately 1200 items which will be paginated by page size of 30. The size of each json item will be around 1.22 KB and total size for 1200 items will be 45 KB. The data will be retrieved from sql server using a SQL query which will be build at run time.
Currently I have implemented this using server side paging and have parameters in API to filter the data. As I have understood data will be mostly static in nature. I believe once in a month it will change.
The users of this webpage will be mostly from US. It will be deployed on azure cloud.
Given these facts I am inclined to cache this data. Please help in deciding which cache to use:
- Redis - Distributed cache
- .net core caching
Or any better option.
0 comments:
Post a Comment