Comments (4)
layotto和mosn之间的通信的话这边用的是net.pipe,是不经过传输层,直接内存级别的数据拷贝,损耗还是很小的。但就像你说的为什么塞到的是mosn的L4 OnAccept, 是因为mosn在L4对流量进行了很多的处理,很难把这个逻辑再移动到layotto里面,所以就直接通过pipe让mosn感知不到下游,layotto把数据包拼好后通过pipe(非L4)交给mosn处理。
from layotto.
@carolove 我看到了 @alpha-baby 的性能测试报告,正如 @wenxuwan 说的,当时考虑到如果使用onReceiveStream.OnReceive
这种方式,可能会丢失一些在OnAccept
中设置的上下文信息导致后续处理不可预测的问题,后面我们会定位的一下影响性能的原因,如果这里影响较大,那还是会考虑使用你说的方案来优化
from layotto.
@carolove 我看到了 @alpha-baby 的性能测试报告,正如 @wenxuwan 说的,当时考虑到如果使用
onReceiveStream.OnReceive
这种方式,可能会丢失一些在OnAccept
中设置的上下文信息导致后续处理不可预测的问题,后面我们会定位的一下影响性能的原因,如果这里影响较大,那还是会考虑使用你说的方案来优化
如果方便,可以给个对比报告出来
from layotto.
那等着你们的优化报告,这个issue先关闭了
from layotto.
Related Issues (20)
- bug(ci): make: No rule to make target 'helm-package' HOT 1
- 2023-10-25 社区会议 HOT 1
- 2023-11-01 社区会议
- 2023-11-08 社区会议 HOT 1
- 2023-11-22 社区会议 HOT 1
- 2023-11-29 社区会议 HOT 2
- 官方文档中关于 configuration api 的功能介绍文档缺失 HOT 6
- test HOT 8
- 2023-08-02 社区会议 HOT 1
- 2023-08-09 社区会议 HOT 1
- 2023-08-16 社区会议 HOT 1
- 2023-08-23 社区会议 HOT 1
- 2023-08-30 社区会议 HOT 1
- 2023-09-06 社区会议 HOT 1
- 2023 CSDI SUMMIT HOT 1
- 2023-09-13 社区会议 HOT 1
- layotto api 向前兼容 dapr 代码 HOT 9
- 2023-09-20 社区会议 HOT 1
- 2023-09-27 社区会议 HOT 1
- 2023-10-11 社区会议 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from layotto.