Skip to content

decode 可以放到 downstream 里面执行 #2417

Description

@fibbery

https://github.com/mosn/mosn/blob/d37fe18cf4860b678c693942e8c809d06de8ed25/pkg/stream/xprotocol/conn.go#L123C3-L123C51

目前看这个逻辑是Dispatch里面,意味着一条连接里面是串行执行的。如果 decode 方法在压测场景下性能不好,延迟较高,那么容易引起整体请求都慢,但是本身负载又没上去的情况。

解决方式:建议整体的 decode 可以放在 downstream 里面去执行,不会阻塞在连接读取数据这里

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