Comments (5)
可参考tutorial-10,自定义协议c/s。另外我们原生也提供了redis server,可以用来做redis协议的服务。
我们的server支持TCP,TCP-SSL,SCTP以及SCTP-SSL,但不支持UDP server。client支持UDP client。
from workflow.
好的,谢谢
from workflow.
注意一下client task里的resp,如果请求过程中如果有retry,会被析构重新构造。所以RESP类最好是RAII的。如果不是的话,也有办法,遇到实际需要可以再提issue。祝coding愉快。
from workflow.
好的,准备试试这个库,这个库挺不错的,易于使用,也经过搜狗的考验
from workflow.
关于自定义协议的client/server,简单的就像turtorial-10那么实现就可以了。默计包含了DNS和retry功能。
而功能更强的client/server实现可以非常非常复杂。
http任务里,会自动补全header,会自动计算连接保持时间,client会redirect,server会自动识别连接保证次数,精确处理Expect: 100-continue请求。
redis任务里,包含了自动登陆的交互过程,数据库id的选取。
mysql任务,包含了复杂的登陆过程,对server发来的挑战数计算,字符集和数据库选取,更有复杂的事务状态处理,并且一切都是全异步的。mysql任务的实现几乎挑战了我们任务交互功能的极限。
kafka任务是一种典型的分布式任务,交互上主要是各种meta信息的更新,路由,rebalance等。kafka协议虽然复杂,但对我们框架来讲更为友好,因为我们天生适合分布式系统的实现。
所有协议不支持pipeline server,可以实现pipeline client,但有损系统美感,目前没有提供相关实现。之后打算直接上streaming引擎。
from workflow.
Related Issues (20)
- 框架现在支不支持创建多个tcp tls客户端任务,每个tls客户端使用的证书私钥以及ca证书都不同的通信方式 HOT 26
- http客户端发送消息 HOT 9
- 有没有复杂一些的http server例子? HOT 1
- 我看了workflow和wfrest,都写得很优雅,上手很快👍🏻。但是我有个疑问,Web服务器为什么不用go和gin呢,而要用workflow?选择workflow的优势有啥? HOT 2
- websocket并发问题咨询 HOT 2
- 用WFFileIOTask写入字符串到文件里出现乱码 HOT 2
- 在tutorial执行"make"报错"collect2: error: ld returned 1 exit status" HOT 7
- 咨询tutorial-05-http-proxy的reply_callback() HOT 2
- 咨询curl向workflow server上传文件,workflow server如何读取文件内容 HOT 2
- httpServerTask的回调函数中设置响应会回复默认响应 HOT 4
- 关于wait_group的详细用法 HOT 26
- 关于workflow TCP连接获取连接地址以及端口问题 HOT 1
- nossl分支tutorial make报错 HOT 4
- 关于GPL许可证兼容性的疑虑 HOT 1
- 支持PostgreSQL协议的讨论帖 HOT 17
- 关于mysql事务的回滚问题 HOT 3
- workflow充当HTTP网关时数据量太大就收不全 HOT 28
- workflow是否支持RPC协议? HOT 1
- WFNetworkTask http 服务怎样获取 post 请求的数据 HOT 2
- 咨询头文件报错问题 HOT 2
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 workflow.