Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage backed VDOM trees and hook states #1094

Open
Archmonger opened this issue Jul 10, 2023 · 0 comments
Open

Storage backed VDOM trees and hook states #1094

Archmonger opened this issue Jul 10, 2023 · 0 comments
Labels
priority-3-low May be resolved one any timeline. type-feature About new capabilities type-refactor About improving code structure.

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Jul 10, 2023

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.

@Archmonger Archmonger added type-feature About new capabilities priority-3-low May be resolved one any timeline. type-refactor About improving code structure. labels Jul 10, 2023
@Archmonger Archmonger changed the title Storage backed hook states Storage backed VDOM trees and hook states Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low May be resolved one any timeline. type-feature About new capabilities type-refactor About improving code structure.
Projects
None yet
Development

No branches or pull requests

1 participant