Skip to content

Support protobuf as a serialization protocol #85

@VigneshVSV

Description

@VigneshVSV

gRPC's default serializer and relies on code generation.

Initially we should support setting the model argument of the Property, or the payload schema for both actions and events. From what I understand, finally, the user should create the objects defined in the .proto file and pass those objects as the property, action or event value.

From the serializer side, these objects are picked up and dumped into binary by the serializer. A little bit like pydantic or msgspec except the code generation part.

Please note that my charaterizations may not be correct or acurate. Details can be added or removed as necessary.

Rough Steps:

  • Define the flow of actions from creating proto files and the code generation (which will most likely follow their existing conventions)
  • Implement serializer by installing the package, and subclassing from BaseSerializer. define dumps, loads and content_type property
  • make the implementation optional - should not be installed by default with the package. Only on use case basis where the user follows instructions to install it.
  • add tests in test_03_serializers.py

Any missing information or wrongful info, please feel free to add or correct.

Please fork main-next-release branch and merge it there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersintermediateintermediate level good first issues, might be little harder to complete

    Projects

    Status

    Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions