Background: we learnt servlet threading many times but still didn’t internalize it. Let’s distill into single-word keywords.
* objects in application-context are obviously thread unsafe. Before you consider session scope or servlet instance vars, consider application-context
* session scope objects can be modified from 2 browsers. This is more digestible than servlet instance vars.
Now let’s distill the digestible insights on servlet instance var.
* one servlet instance 1:m multiple threads. This is the final knowledge pearl.
* this 1:m is the prevalent set-up. 1:1 is rare