[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the gambas web apps


Am 26.03.25 um 11:42 schrieb gaucho:

i am trying to program an ERP with gambas3 but i need help on some
concepts and the best way to deal with them.
For example:
In a production environment, the WEBAPP program is running behind
Apache server.
Each user, from a web browser such as FIREFOX, connects to WEBAPP. At
that moment WEBAPP presents the login form, the user enters name and
password and when clicking on the button:
- The session is created
- The connection to the database is created (if it is not present).

How many sessions can WEBAPP handle?

One per user and request if you use CGI.

Apache is the one that starts the webapp for every request which then creates/loads the session according to the cookie beeing set/sent, does what it has to do according to path of the request and GET/POST data and sends the response and after that quits.

If you have multiple users for every user and every request the webapp starts new.

If the webapp must talk to the database it starts the connection, does what it has to do there and closes the connection at the end.

If you have concurrent (write-) requests to the database you have to implement a locking mechanism.

Alles Gute

Christof Thalhofer

--
Dies ist keine Signatur


Follow-Ups:
Re: About the gambas web appsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
About the gambas web appsgaucho <64xcode@xxxxxxxxx>