appier icon indicating copy to clipboard operation
appier copied to clipboard

App instance retrieval on a per-thread basis

Open joamag opened this issue 10 years ago • 0 comments

Description

While using Appier it's important to keep in mind that many features of it use the concept of global variable to simplify the usage process.

These same global variables may created weird runtime issues while running the App, mainly while running multiple Apps in the same process.

To avoid some of thoses issues a per-thread association should be created between an App and the thread where it's container (web server) is running.

Solutions

The start() and stop() method of an app are called "inside" the web server container and should be used for this kind of registration.

joamag avatar Nov 26 '15 12:11 joamag