Introducing the production architecture
In the local environment development scenario (as in the previous chapters), it is fine to use the php artisan octane:start
command to start Laravel Octane. However, it may be helpful to configure a different architecture in a production environment where the requirements are different from a local environment.
Typically, in a local development environment, you need automation and configurations that are useful for developing new features, such as automatic service reload. In contrast, in a production environment, the configuration must allow for optimum levels of performance and reliability. Therefore, choosing a different, production-specific architecture in this production scenario is common.
The design of the production environment architecture we are going to address involves the use of a web server to initially sort HTTP requests. The web server’s task will be to differentiate requests for static assets (where no PHP engine...