Skip to content

Best way to write recursive Array Frames to the socket? #149

@louismlb

Description

@louismlb

I don't know where the best place to ask this is,

but I was wondering what would be required to support writing recursive data structures asynchronously to the socket, like mentioned here. Should we make the write_frame method synchronous, and use tokio channels with synchronous methods on the sender? But then maybe it could get filled up if IO is slow?

Then what would be the most efficient / idiomatic way to tackle this?

That would allow support for sending array frames containing array frames, which is frequent in redis. I'd be glad to submit a PR if it is deemed useful for the tutorial repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions