Thank you for looking into it! I would love to use the new configuration
Have you tried this in a fresh or different laravel app to ensure it’s not related to your specific laravel app?
I actually did. I ran it in an empty Laravel project, and latency for that default Laravel app is fine:
https://shy-tree-2192.fly.dev
^ that’s a laravel new
followed by a a fly launch
. Nothing else.
Perhaps it is something about my specific project, but I can’t think of anything that out of the ordinary. And if that’s the case, why is it fast on AWS? A few things I checked:
- Do I accidentally make connections to external services in AWS? I found some kind of CloudWatch configuration in my
config/logging.php
so just to be sure I removed that. In fact, today I created a fresh Laravel project and copied all the config files to my “old” project and made some small adjustments until to match my project.
- I copied all the provider classes from a fresh Laravel project into my project. I noticed the syntax for registering routes changed so I changed that in my codebase.
These things both didn’t matter.
It might be something about the size of the project. Obviously it’s bigger than an empty Laravel project, but it’s not too large. To give an approximate idea of the project size: I have 113 routes and 23 models.
I don’t have any custom providers.
Maybe relevant, the packages that I am using:
"require": {
"php": "^8.1",
"ext-intl": "*",
"ext-json": "*",
"artesaos/seotools": "0.22.1",
"blade-ui-kit/blade-heroicons": "1.3.1",
"doctrine/dbal": "3.4.0",
"guzzlehttp/guzzle": "7.4.5",
"intervention/image": "dev-master",
"lab404/laravel-impersonate": "1.7.3",
"laravel/framework": "9.24.0",
"laravel/horizon": "5.9.10",
"laravel/sanctum": "3.0.1",
"laravel/telescope": "4.9.2",
"laravel/tinker": "2.7.2",
"laravel/ui": "4.0.0",
"league/flysystem-aws-s3-v3": "^3.0",
"livewire/livewire": "2.10.7",
"lorisleiva/laravel-actions": "2.4.0",
"maatwebsite/excel": "3.1.40",
"mollie/laravel-cashier-mollie": "^2.0",
"moneyphp/money": "4.0.5",
"nunomaduro/collision": "6.2.1",
"phpoffice/phpspreadsheet": "1.24.1",
"predis/predis": "2.0.0",
"propaganistas/laravel-phone": "4.3.7",
"sentry/sentry-laravel": "2.13.0",
"spatie/icalendar-generator": "^2.3",
"spatie/laravel-ignition": "1.3.1",
"spatie/laravel-newsletter": "4.11.0",
"spatie/laravel-permission": "5.5.5",
"spatie/laravel-sluggable": "3.4.0",
"spatie/test-time": "^1.3",
"tightenco/ziggy": "1.4.6",
"twilio/sdk": "6.40.1"
},
Not sure if relevant, but the external services I am using:
- Sentry
- I have another Fly app running
mysql:8
.
- I am using an Upstash redis server created with the Fly CLI.
- Postmark
- Twilio