Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 Transport 包的作用 #90

Closed
yiippee opened this issue Apr 13, 2021 · 2 comments
Closed

请问 Transport 包的作用 #90

yiippee opened this issue Apr 13, 2021 · 2 comments

Comments

@yiippee
Copy link

yiippee commented Apr 13, 2021

舒大你好,感谢你的项目。
请教一个问题,框架中有一个Transport 包,代码注释说 Transport is an interface which is used for communication between services. 但是client server 已经提供了services之间的通信了啊,为啥还需要 transport呢?似乎没感受它存在的意义。有相关例子阐述transport的用法和作用吗?
谢谢。

@yiippee
Copy link
Author

yiippee commented Apr 14, 2021

谢谢你的回复,ppt中说transport是用于service间同步通信的,send 和 recv,但感觉与client server之间的通信没什么区别,比如基于grpc 的 client server也是可以stream来通信的。所以,transport有什么特别的作用吗?谢谢。

@yiippee yiippee closed this as completed Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants