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 application with server
Forum Updated to NodeBB v4.3 + New Features

Qt application with server

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.4k Views 1 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.
  • X Offline
    X Offline
    xercasy
    wrote on last edited by
    #1

    Hello

    I developed a Qt application. Now I need a server with a remote database to implement new features. I don't want that the application is directly connected with the remote database. Indeed I think it isn't the best way. Communication will be done in RESTful.

    My quetion is how to implement the server. Should I necessarily do this with Qt or can I use other languages (for exemple java with tomcat) ... What are the differences between these two ways , a question of performance?

    Thank you

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #2

      I always developed my server side component in Qt using QTcpServer with a "custom" communication protocol.
      But my applications don't need to communicate with 3rd party software.

      To follow this way I started from the Fortune Example.

      Honestly I don't know about performance but it works great.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xercasy
        wrote on last edited by
        #3

        Thank you for your answer !
        I think I will do .... 2 server.

        The first one in Qt (probably with QTcpServer -> thx for your link). My app will be always connected with it.

        The second server will offer an API rest and it will use a database.

        2 servers because later there will be a web application.

        My app will use these two servers ...
        I don't know if it's a good practice, Lack of experience ...

        What do you think about it ? Thx

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #4

          I have similar situation.
          My App talk with the server using QTcpSocket/Server .
          The same server (and same application) provide rest like service using QtWebApp for web clients.
          I put both service on the same server application to share the same logic/code but you can also develop 2 independent services to optimize the load from different clients.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            You also have the cutelyst project that might be of interest.

            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
            1

            • Login

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