just to clarify, im talking about the Flux pattern of Facebook/React/Redux/Mobx and not Spring Webflux.
I'm looking to use a global state container paradigm in Spring Boot. It will be read/write and be set at runtime. Meaning the name of state variables will be set by components/beans at runtime and not at compile time.
My application is a very vanilla REST api, so everything is more or less request scoped (including state).
I'm thinking that i will need to use BeanDefinitionRegistryPostProcessor (or PropertyPlaceholderConfigurer ) to create a "global state bean". I'm not able to wrap my brain around the data structure to use - especially if i want anything close to type safety.
Has anyone implemented the react-like flux global state pattern in Spring Boot. what has your experience been like ?