hi
i am building a Rest Api using B4j WebApp running on a LAMP Server.
My Questions is:
the web app is the only client that is connecting to the MySql DB. Every other client can make get/post requests to the b4j webapp => b4j webapp read/write data to the mysql db and returns back to the client.
so my questions is should i open/close the connection every time a client (browser, mobile app, etc...) is making a request (via websocket or server handler) to the webapp or can i leave the connection open since ONLY the webapp is making a connection to the DB?
thanx
i am building a Rest Api using B4j WebApp running on a LAMP Server.
My Questions is:
the web app is the only client that is connecting to the MySql DB. Every other client can make get/post requests to the b4j webapp => b4j webapp read/write data to the mysql db and returns back to the client.
so my questions is should i open/close the connection every time a client (browser, mobile app, etc...) is making a request (via websocket or server handler) to the webapp or can i leave the connection open since ONLY the webapp is making a connection to the DB?
thanx