Skip to content

[Feature Request] Support streaming responses #542

@koepalex

Description

@koepalex

Use case:

As a connector developer
I want to send multiple responses for the same request
So that I can reduce the size of a single response and improve the latency for the first answer.

Todo:

  • Extend CommandExecutor to support multiple responses e.g.
public required Func<ExtendedRequest<TReq>, CancellationToken, Task<IAsyncEnumerable<ExtendedResponse<TResp>>>> OnCommandReceived { get; set; }
  • Extend CommandResponseMetadata with ResponseMessageId as well as IsLastResponse propeties
  • Extend AkriSystemProperties with ResponseMessageId (proposal ReservedPrefix + "respId")
  • Extend AkriSystemProperties with LastResponse (proposal ReservedPrefix + "lastResp")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions