You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been a month since I came across this awesome framework after using Laravel. At first, I had trouble finding myself in the documentation, but it contains the essentials. My doubt with this framework is how it works in concurrent mode and how the configuration files are shared between requests.
For example, if I take the multi-tenancy example where each tenant has their database connection, how can I implement that? If I change the configuration database files dynamically to add new entries for the tenant, is this configuration always available for me even if the coroutine that initialized the request is switched to other requests?
Can someone explain to me how class instances work in Hyperf? Do we have a Container instance per request, and for each container, do we have an instance for configurations (conf/autoload)? Is this correct?
ApplicationContext::getContainer()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It has been a month since I came across this awesome framework after using Laravel. At first, I had trouble finding myself in the documentation, but it contains the essentials. My doubt with this framework is how it works in concurrent mode and how the configuration files are shared between requests.
For example, if I take the multi-tenancy example where each tenant has their database connection, how can I implement that? If I change the configuration database files dynamically to add new entries for the tenant, is this configuration always available for me even if the coroutine that initialized the request is switched to other requests?
Can someone explain to me how class instances work in Hyperf? Do we have a Container instance per request, and for each container, do we have an instance for configurations (conf/autoload)? Is this correct?
ApplicationContext::getContainer()
Beta Was this translation helpful? Give feedback.
All reactions