You need to design a solution to ensure that data caching and session state will be maintained.
Which approach should you recommend?
A.
Use distributed caching and out-of-process session state.
B.
Use distributed caching and in-process session state.
C.
Use output caching and out-of-process session state.
D. Use output caching and in-process session state.
Explanation:
Out of proc- A good next step, this moves session out to a Windows Service. You can run one per Web Farm
(meaning, you’ve got multiple machines but one instance of this service) and your session data will survive
process recycles, but not system reboots. This is useful for both Web-Gardening and Web-Farming.
Folks usually forget to mark their objects as [Serializable] which basically gives your objects “permission” to
leave their process space and be stored in memory in the State Service. If you’ve got a high-traffic site you
might want to avoid storing complex objects and object graphs as you’ll pay for it on the serialization. Of course,
with all things, measure everything! You’ll get best performance if you stick with basic types like strings, ints,
etc.