Skip to content

What is the use case for BidirectionalStreamer #670

@tharvik

Description

@tharvik

I'm refactoring the streaming capabilities of onet. Now, I'm having issues understanding what is the need for a bidirectional stream. Which real use case cannot be solved by opening a new stream for each client input?

  • to avoid many TCP open, one can use a ClientKeep
  • currently, it is not clear, either in code or in documentation
    • what happen when a service didn't finish streaming and the client sends a new message
      • if theses are sent on the same channel, messages will be mixed
    • should the service wait anyway on the "stop service" signal?
    • should a "stop service" close all the returned channels? isn't theses supposed to be the same?

I was thinking of removing the bidirectionnal support, and having the streaming calls returning a new connection/channel for each.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions