It is a false assumption that, just by moving an application to the cloud, it will run faster. While it is much easier to scale an application there, effects from a weak application architecture, massive amounts of database queries or unoptimized storage usage can actually make things slower. When you run your whole application, including database server, key value store and storage, on a single machine, you won't notice many of the performance issues which surface in scalable environments.
These kinds of performance issues are a bit tricky to debug. Your Neos website may be pretty fast on your brand new MacBook Pro, but perform badly on a production server. Most commonly, latency is what spoils the party. In these cases, profiling in the actual hosting environment is what you need to do. And with the free Blackfire integration for Flownative Beach, this is only a matter of a few clicks.
Performance Profiling for Neos and Flow
Simply get started with Blackfire by going to the "Add-On" of your Beach project (available in Starter projects and higher). Add your Blackfire identifier and tokens for server and client:
Once your'e done, you can enable Blackfire profiling for any instance of your project. Just go to the instance you'd like to profile and enable Blackfire profiling using the switch:
After next deployment your instance is configured for profiling with Blackfire. Beach supports both, HTTP(S) and command line profile runs. For HTTP, just browse to your instance with a browser using the Blackfire Companion plugin.
Profiling a service or command you run from the command line is easy, too: log in to your instance via SSH and use the blackfire utility to start a profiling run:
We think it's never been easier to profile a Neos website or Flow application in its natural habitat. Enjoy!