@solnic @codefolio I'm not sure if "state" is the right word here. You don't use that word at all in the docs: https://guides.hanamirb.org/v2.0/app/providers/
When I think of "state management" I think of sth like #redux in #javascript or #genserver in #elixir. They both have a way to update the state: reducers in redux and handle cast/call in GenServer.
Perhaps I'm not familiar with #hanami enough, but providers look to me like a wrapper API for dependencies or a low-level way to interact with Hanami's DI system.
#hanami #elixir #genserver #javascript #redux
Dropping #ecto in favour of using a #genserver with a simple async persistence only for the things that need to be persisted made a credential verification from a 50+ms ordeal into 1-ms ordeal. x50 speedup makes me hopeful about #doauth 0.4 demo making a user account in sub-100ms, compared to sub 1.5s which 0.3 shows.