![]() ![]() The vapor.yml file can be configured to include up to 4 layers in the application's deployment. Lambda layers are typically used to add extensions to the base runtime. If you unzip the PHP layer you should see some familiar looking directories containing a PHP binary and various extensions and CLI tools. These layers may sound like magic binary files containing some low-level unix voodoo but they're actually just ZIP archives containing files. That's why every Laravel Vapor Lambda deploys with a PHP layer that contains the necessary binaries and configuration options to execute your PHP code. Every layer adds some additional code, libraries or runtimes on top of your Lambda's source code.Ĭompared to a more traditional Lambda that uses the built-in NodeJS runtime, PHP isn't one of the default Lambda runtimes. It's like Shrek once said: "Lambdas are like onions. This will come in handy for getting Blackfire to work on Lambda. ![]() This is important because the agent doesn't necessarily run on the same machine as the PHP probe. This configures how the PHP probe can communicate with the Blackfire agent. That's why its most important configuration option is the BLACKFIRE_AGENT_SOCKET value. It will read profiling data from the PHP process and send it to the Blackfire agent. The PHP probe is nothing more than a PHP extension. ![]() It reads profiling data from a unix socket or TCP address, does some processing and then sends the data off to our Blackfire account using the configured server ID and token. I like to think of the agent as a proxy service to Blackfire's APIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |