#1094·reactpy

Storage backed VDOM trees and hook states

Author: ArchmongerCreated Jul 10, 2023Updated May 11, 2026
Labelspriority-3-lowtype-refactor

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 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.