reactpy
reactpy copied to clipboard
Storage backed VDOM trees and hook states
Current Situation
All VDOM and hooks are currently stored entirely in memory. The use of additional system ram for each component could potentially be a problem for scaling an application to service hundreds of thousands of users.
Proposed Actions
One of the two options a potential solution is to allow for VDOM and hook states to be backed by Redis and/or a database. This would allow us to create a variant of ReactPy that does not require websockets, and instead operate off the stateless HTTP.
Evicting old states becomes a challenge with these designs, but is not impossible to handle.