Coder Social home page Coder Social logo

Comments (3)

khotyn avatar khotyn commented on August 20, 2024

@xmtsui 帮忙回答一下。

from sofa-bolt.

xmtsui avatar xmtsui commented on August 20, 2024
  1. 请求失败的问题,目前我们线上是这样在用的,没有碰到过这样的问题,不知道是否方便贴一下代码,我也来看下你的实现,分析下是不是我们有什么定制或者抽象不好的地方,导致你们直接使用有问题。
  2. 性能这块当时压测的数据我找不到了,在高并发下的优化很明显(印象有20%以上),低并发不明显,不过没有未知异常的失败情况。我回头整理下bolt-benchmark,也把压测工程开出来,到时也把具体数据提供出来。

@lexburner

from sofa-bolt.

xmtsui avatar xmtsui commented on August 20, 2024

内部做了一些压测,当前结论是

对于bolt在Epoll和Decoder上的优化性能,测试的反馈如下:
在Epoll方面,Epoll带来的性能提升比较明显,整体在10%左右,不论是消息还是rpc调用上都有优秀的发挥,消息收发上来说对于高连接数的高并发的场景,性能会提高至10%以上,在低连接数时的性能提升较低;在RPC调用这块,Epoll的提升比较全面,低连接数时的性能在6%~8%左右,在高连接数时能达到10%。
在Decoder方面,AbstractBatchDecoder和ByteToMessageDecoder在低并发的情况下,不论是消息还是rpc调用两者的性能相当。但是AbstractBatchDecoder相比ByteToMessageDecoder来说,其批量处理的特性使得它在
高并发的情况下能够获得显著的性能提升,经过反复测试,在10%以上,且请求的大小越小性能提升越大。
在两者都开启的情况下进行测试,可以发现整体性能有着显著的提升,在消息收发方面,平均提升在10%左右,最高可达20%,与消息的大小成反比;在RPC调用方面,整体的提升可达20%以上,与并发数连接数的增加成正比,最高可达33%。

测试工程准备ok后再开放,本issue先关闭了

from sofa-bolt.

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.