Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is highest attainable data transfer speed through qtwebsockets?
Qt 6.11 is out! See what's new in the release blog

What is highest attainable data transfer speed through qtwebsockets?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mohankumar_SM Offline
    Mohankumar_SM Offline
    Mohankumar_S
    wrote on last edited by
    #1

    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?

    kshegunovK 1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Mohankumar_SM Mohankumar_S

        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?

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by kshegunov
        #3

        @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.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        0
        • Mohankumar_SM Offline
          Mohankumar_SM Offline
          Mohankumar_S
          wrote on last edited by
          #4

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

          kshegunovK 1 Reply Last reply
          0
          • Mohankumar_SM Mohankumar_S

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

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

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

            Read and abide by the Qt Code of Conduct

            Mohankumar_SM 1 Reply Last reply
            0
            • kshegunovK kshegunov

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

              Mohankumar_SM Offline
              Mohankumar_SM Offline
              Mohankumar_S
              wrote on last edited by
              #6

              @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.

              kshegunovK 1 Reply Last reply
              0
              • G Offline
                G Offline
                gyll
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • Mohankumar_SM Mohankumar_S

                  @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.

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by
                  #8

                  @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.

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved