• RonSijm@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    11 months ago

    Isn’t that the same as modern languages? For example in ASPCore / C#, you can just register all your services with a lifetime scoped to the request, and then there’s no shared state.

    If you want there to be a shared state, you’d just have to register your services with a higher lifetime scope, like with a singleton scope