Hi,
Id like to know what is the best practice when dealing with resources on the server with amfphp.
Say I have a Connection class file which simply holds a mysql connection. The each service class with amfphp extends that Connection class in order to handle data.
So the question is... does calling these services and their methods repeatedly (every few seconds) and continuously affect the response back from the server?
What are the things to consider here when connecting over and over to the mysql server? Or is the same connection used since its initiated the first time?
So this is what Im really wondering... what happens each time I call a remote class/method?
Is a new object created in server's memory each time? Would this cause a new connection each time?
Or does the instance of a remote class remain live for the entire browser session and from flash its methods are called? This would imply the use of persistent connections, wouldn't it?
Anyhow, thanks for any ideas or thoughts on this.
AMFPHP - opitimization/resources concerns
Moderator: General Moderators
-
scheinarts
- Forum Commoner
- Posts: 52
- Joined: Wed Jul 25, 2007 2:37 am