need ask you about some help.
I have web app running in Net 2.0.
I wanna ask what storage (cache, session, file) I should use for my objects as they have different scope of using. Can be divide into several groups:
1) objects related directly to visitor (e.g. details about visitor that are received after authentication)
2) objects that are used for every visitor, so its scope of application (some init data, common data)
Most of these objects get data from web service, which is expensive.
So what’s my best choices considering speed, memory, accessibility and what else I should look out.
Any help most welcome. Thanks, X.
Objects related directly to the visitor should be stored in
Sessionalthough excessive use ofSessionand many users can lead to scalability issues.Objects that are shared for every visitory should be stored in
Cacheso they will go out of scope if they aren’t accessed often so that memory can be reclaimed (not to mention the added incentive of dependencies). In scenarios where you know an object must be accessible immediately no matter how much time has passed between the last time it was accessed, then you should store that object inApplication.