What is highest attainable data transfer speed through qtwebsockets?



  • I intend to use qt websockets for real-time data logging.I want to test the performance of qtwebsockets for the same,can you suggeset some methods?


  • Moderators

    Well, you should try to simulate the load you're going to have under same/similar conditions you're going to have. I would write an application using Qt websockets which logs as much data as you expect to have on the real system later.


  • Qt Champions 2016

    @Mohankumar_S
    Hello,
    Determining the websocket(s) throughput might not give you a real-world indicator on how your application is going to perform, because in the end, I believe your network connection will be the bottleneck for the transfer. Nonetheless, you can check the possible "theoretical" speed as @jsulm suggested: in your test application start a local websocket server and a client that connects to that server (putting each in a separate thread) and measure the amount of data you could transfer between the two. You should get a fairly fast communication, that most probably will be even faster than any real-world application is ever going to achieve. The things most probable to affect the throughput are network related in my opinion - latency, TCP stack size, connection speed. However these you can't check with such an application and depend heavily on the final setup, so I'm not sure how helpful such a test will prove to be.

    Kind regards.



  • @kshegunov thank you.
    How can i go about building an abstraction layer over qtwebsocks?


  • Qt Champions 2016

    @Mohankumar_S
    Hello,
    What abstraction layer would you want to build, what do you want to abstract?



  • @kshegunov Hi I want to build a real-time diagnostics monitoring server-client system on top of qtwebsockets library.Can I building the abstraction such that i can switch(change) between multiple websocket libraries without having to change the overall code.



  • I am working on an abstraction library over Qt myself, and websockets is on the list but i didn't get there yet. I wrote an abstraction for file system interface and for UDP sockets, now i'm working on TCP sockets, and websockets is next on the list. Maybe we can work together on this if you like?


  • Qt Champions 2016

    @Mohankumar_S
    Hello,

    Hi I want to build a real-time diagnostics monitoring server-client system on top of qtwebsockets library.Can I building the abstraction such that i can switch(change) between multiple websocket libraries without having to change the overall code.

    You can, however this is an extensive topic and I'm not sure I can put all the fine details in a post. Maybe share what you're thinking about doing and I/we could give you pointers?

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.