How to loadtest server sent events

心不动则不痛 提交于 2019-12-25 08:47:52

问题


I have a node service that streams data via SSE (https://www.npmjs.com/package/sse-channel). I would like to loadtest this service my making 'n' concurrent connections, i tried the "loadtest" npm module but since we are dealing with streaming responses i was not able to report back any data like requests per second, mean latency etc… when the streaming requests are made, is there a way to use "loadtest" module for streaming services if not can someone point me to the module that would report back status while making concurrent streaming requests.


回答1:


Gatling (http://gatling.io/#/) has support for SSE (http://gatling.io/docs/2.2.2/http/sse.html). It's not in js, it's Scala. But, it's quite simple to write a scenario that targets a SSE server.



来源:https://stackoverflow.com/questions/40048289/how-to-loadtest-server-sent-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!