Design guidelines for cache mechanism
- by Delashmate
Hi All,
I got assignment to write design for cache mechanism (this is work assignment, not homework),
This is my first time writing a design document,
Our program display images for doctors, and we want to reduce the parsing time of the images
So we want to save the parsed data in advance (in files or inside database)
Currently I have several design key ideas:
Handle locks - each shared data structure should be handled, also files
Test - add test to verify the data from the cache is equal to the data from the files
To decouple the connection to the database- not to call directly to the database
Cleanup mechanisem- to delete old files if the cahce directory exceed configurable threshold
Support config file
Support performance tool in the feature
I will also add class diagram, data flow charts, and workflow
What do you think I should add to the key ideas?
Do you know good link to atricales about design?
Thanks in advance,
Dan