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

Consider protobuf #3778

Open
benedikt-bartscher opened this issue Aug 11, 2024 · 0 comments
Open

Consider protobuf #3778

benedikt-bartscher opened this issue Aug 11, 2024 · 0 comments
Labels
feature request A feature you wanted added to reflex

Comments

@benedikt-bartscher
Copy link
Contributor

Introduce a protobuf based protocol for websocket communication.
This is useful to differentiate messages sent over the wire in a type-safe and performant way.
buf could be used to streamline the js and python code generation.
Could be used to differentiate var types f.e. for #3732 and #3340

A first implementation could mostly rely on json strings or protobuf structs.
Because reflex already knows var types at compile time, we could later add a feature to dynamically create a protobuf spec for a computed var like this:

class State(rx.State):
  @rx.var(protobuf=True)
  def proto_int(self) -> int:
      return 5

Protobuf could also be interesting for StateManagerRedis.

@Lendemor Lendemor added feature request A feature you wanted added to reflex and removed custom component request labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature you wanted added to reflex
Projects
None yet
Development

No branches or pull requests

2 participants