Replies: 1 comment
-
In worker mode, there isn't really a need for persistent connections since the connection is simply reused on the next request by default. From experience, you'll need to check that your app can handle the entity manager being closed and such; since the entity manager may survive into the next request. If you are using an up-to-date symfony/api platform, I believe this is 100% handled for you; but if you are using Doctrine outside of that (or an older version of these), then it is just something to be aware of and make sure you test. There are a few other "gotchas" to using Doctrine outside of Symfony as well in worker mode, but I won't bore you with them unless you are curious. |
Beta Was this translation helpful? Give feedback.
-
Migrating a project from Caddy/FPM to FrankenPHP I noticed that Doctrine was configured to use persistent connections. I'm not seeing any measurable performance impact locally, so I'm curious about your opinions on that matter.
With FrankenPHP in worker mode, are persistent connections still beneficial to performance?
Beta Was this translation helpful? Give feedback.
All reactions