Click here to Skip to main content
15,895,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Currently using Web API to access exchange data and there is an increase of 5000 records every month. Total size as of now is 8 MB. Someone suggested me to use data caching for this data. Please help me to identify, when to use data caching based on below parameters.

Data Volume
Monthly new addition of 5000 records
Highly in used

What I have tried:

What is recommended for data caching
Posted
Updated 12-Jan-19 23:45pm
Comments
Dave Kreskowiak 12-Jan-19 16:00pm    
Caching data and how much of it depends on the context the data is used and how often it is required.

You haven't said anything about what data you're talking about, how often it's used, if you're using all of the records in some processing or just a few of them, ...

Just throwing "caching" at data doesn't help you at all. It's the use of the data and the workload that justifies it.
Navneet Kumar 13-Jan-19 2:33am    
This data is exchange rates, at a time, one exchange rate will be used for the transaction.

1 solution

I would not suggest you to go for direct in-memory caching since with growing cache, the performance of application will degrade.

However, you can consider using open source tools like Redis that allows you to cache data without causing any performance related issues and better management of cache data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900