
Realistically, the situation often arises in applications where neither one or the other model is the most suitable at all times. A typical example of this would be the online store, where browsing and navigating through the product catalog can very well be done in stateless mode, but where the actual ordering operation including first-time registration is, for technical reasons, very often realized in stateful mode.
These scenarios are handled by switching the mode can be switched between stateful and stateless at runtime.