Hello!
I'm starting a fresh application from scratch and I would like to ask you for your opinions.
The application will hit a MariaDB database.
I will write a WebSocket server for mobile devices connections and also for workstations via a desktop app.
The mobile devices will hit the web server via events and they will get back JSON or Maps.
I'm in a dilemma about the way to connect the desktop app to the database.
I could use the web server in the same way as mobile but I'm thinking if the direct connection to the database would be better for desktop, because the workstations are in the same building as the DB server.
If I connect the desktop directly to the DB, how to implement the queries? Write them within the app or store them in a DB table as texts so I could change them without changing source code? This same question about queries implementation would be made also for the web server queries!
What do you think?
Thank you in advance!
I'm starting a fresh application from scratch and I would like to ask you for your opinions.
The application will hit a MariaDB database.
I will write a WebSocket server for mobile devices connections and also for workstations via a desktop app.
The mobile devices will hit the web server via events and they will get back JSON or Maps.
I'm in a dilemma about the way to connect the desktop app to the database.
I could use the web server in the same way as mobile but I'm thinking if the direct connection to the database would be better for desktop, because the workstations are in the same building as the DB server.
If I connect the desktop directly to the DB, how to implement the queries? Write them within the app or store them in a DB table as texts so I could change them without changing source code? This same question about queries implementation would be made also for the web server queries!
What do you think?
Thank you in advance!