Giter Site home page Giter Site logo

Comments (4)

gouchaoer avatar gouchaoer commented on May 2, 2024

由于我们业务量不大,不在乎thrift的那点压缩比,用thrift修改了一点接口之后2边都得改,所以还是倾向http server的rest调用方式。。。但是这个调用优缺点就是http建立连接要tcp握手消耗,而且tcp连接断了之后发送端口一点时间内不可用,qps大了就可能导致端口不够用了,如果可以用tcp线程池就好了(也就是keep-alive的http,这条tcp连接在多次请求中复用)。。。另外http server端我还是想用etcd自动注册,如果能基于redis做服务发现那更简单更好,我怎么改造呢?

from zanphp.

gouchaoer avatar gouchaoer commented on May 2, 2024

我看到这里有tcp连接池,还有一个httpclient,如果能用httpclient包装这个连接池就好了。。。

from zanphp.

jockchou avatar jockchou commented on May 2, 2024

http是基于请求响应的无状态协议,是短连接,用完就断开了,哪来的连接池一说?

from zanphp.

xhjcehust avatar xhjcehust commented on May 2, 2024

框架自定义序列化协议和RPC调用方式不久就会推出,敬请期待哦

from zanphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.