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. Qt for a high performance server
QtWS25 Last Chance

Qt for a high performance server

Scheduled Pinned Locked Moved Unsolved General and Desktop
tcpserverperformanceqthread
2 Posts 2 Posters 1.4k Views
  • 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.
  • T Offline
    T Offline
    Trekkie555
    wrote on 6 Nov 2015, 08:19 last edited by
    #1

    Hi
    I am developing a Qt mobile application which connects to a server which does some heavy duty processing. I dont use HTTP but just send JSON objects back and forth using simple TCP. Now I used TCPServer and implemented a neat multithreaded application that acts as the server. Normally one would use PHP or Java servelets to do this but I took this route and ended up with a "C++ server" which I think is very very rare. But enjoyed being able to use C++ and OOP instead of a scripting environment.

    My question is, is this a recommended route ? What if I have thousands of users connecting to the server per second, does the TCPServer, QNetworkAccessManager and QThread infrastructure scale up and handle this load? Or does it end up similar to a standard web server and its limitations (if well written using threadpools etc) ?

    Thanks!
    Sanjit

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Nov 2015, 22:34 last edited by
      #2

      Hi and welcome to devnet,

      The only answer I see is: benchmark. You have to test your server under heavy load to see how well it's doing.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      6 Nov 2015, 08:19

      • Login

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