Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. Best approach to manage subdomains dynamically in a Qt-based mobile app

Best approach to manage subdomains dynamically in a Qt-based mobile app

Scheduled Pinned Locked Moved Wiki Discussion
mobile app deve
5 Posts 5 Posters 304 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.
  • E Offline
    E Offline
    ellen
    wrote on 24 Jan 2025, 05:49 last edited by ellen
    #1

    Hi everyone,

    I'm currently working on a Qt-based mobile application that needs to handle multiple subdomains dynamically based on user preferences. The app fetches data from different subdomains of our main domain, e.g., user1.example.com, user2.example.com, etc.

    Currently, I'm using Q Network Access Manager to make API calls, but I'm wondering if there's a more efficient way to dynamically switch subdomains without affecting the app's performance. Has anyone dealt with a similar scenario?

    Would appreciate any insights or recommendations on how to structure the API requests efficiently and whether implementing a caching layer within the app makes sense.

    Thanks in advance!

    J H 2 Replies Last reply 24 Jan 2025, 06:06
    0
    • E ellen marked this topic as a regular topic on 24 Jan 2025, 05:50
    • E ellen
      24 Jan 2025, 05:49

      Hi everyone,

      I'm currently working on a Qt-based mobile application that needs to handle multiple subdomains dynamically based on user preferences. The app fetches data from different subdomains of our main domain, e.g., user1.example.com, user2.example.com, etc.

      Currently, I'm using Q Network Access Manager to make API calls, but I'm wondering if there's a more efficient way to dynamically switch subdomains without affecting the app's performance. Has anyone dealt with a similar scenario?

      Would appreciate any insights or recommendations on how to structure the API requests efficiently and whether implementing a caching layer within the app makes sense.

      Thanks in advance!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Jan 2025, 06:06 last edited by
      #2

      @ellen Not sure what the problem is. The user selects a domain and your app uses that domain to communicate via QNetwork AccessManager.

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GILOKILO
        wrote on 27 Feb 2025, 19:57 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • E ellen
          24 Jan 2025, 05:49

          Hi everyone,

          I'm currently working on a Qt-based mobile application that needs to handle multiple subdomains dynamically based on user preferences. The app fetches data from different subdomains of our main domain, e.g., user1.example.com, user2.example.com, etc.

          Currently, I'm using Q Network Access Manager to make API calls, but I'm wondering if there's a more efficient way to dynamically switch subdomains without affecting the app's performance. Has anyone dealt with a similar scenario?

          Would appreciate any insights or recommendations on how to structure the API requests efficiently and whether implementing a caching layer within the app makes sense.

          Thanks in advance!

          H Offline
          H Offline
          helpemailtales
          wrote on 28 Feb 2025, 08:37 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • G Offline
            G Offline
            GrecKo
            Qt Champions 2018
            wrote on 28 Feb 2025, 10:47 last edited by
            #5

            Using QNetworkRequestFactory and changing its baseUrl in once place might help.

            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