by gizmore on 8/18/2022, 7:32:03 PM with 1 comments
I just had a nice idea.
Imagine a Web Application.
The Application has todo various things.
I) Receive user input
II )Connect to DB and load Wordpress plugins
III) Interpret user input
IV) Calculate Output
V) Send response
Now the clue is; Step II) could be done before ány connection and input is accepted from the httpd.
A hot process with loaded plugins could wait for the next client.
I could imagine to intruduce a new keyword or function: "listen_and_accept" - which will put your application into the accept state.
Code before this state can be executed, but without user input, to preheat the process.
Maybe a mapping, ModuleLoader, LanguageFileLoading, Code Autoload, etc.
I just had a nice idea.
Imagine a Web Application.
The Application has todo various things.
I) Receive user input II )Connect to DB and load Wordpress plugins III) Interpret user input IV) Calculate Output V) Send response
Now the clue is; Step II) could be done before ány connection and input is accepted from the httpd.
A hot process with loaded plugins could wait for the next client.
I could imagine to intruduce a new keyword or function: "listen_and_accept" - which will put your application into the accept state. Code before this state can be executed, but without user input, to preheat the process.
Maybe a mapping, ModuleLoader, LanguageFileLoading, Code Autoload, etc.
What do you think?
- gizmore