you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 2 years 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

  • source
  • parent