Releases: FluffyDiscord/roadrunner-symfony-bundle
v4.4.0
v4.3.0
HttpWorker - fix worker getting stuck due to missing 'continue' when out of app uncaught exception happens
v4.2.2
do not run service reset in dev mode to keep collected Symfony profiler data
Full Changelog: v4.2.1...v4.2.2
v4.2.1
Full Changelog: v4.2.0...v4.2.1
v4.2.0
Update allows you to reset your services after response has been sent instead of when request arrives. This allows your worker to respond to new requests quicker.
The default behavior of Symfony's kernel is to reset your services before request is handled and slows down the initial reaction time.
| When new request arrives | Your app | After response was sent back | |
|---|---|---|---|
| Symfony | does a reset, if something fails here, request may be lost | waits for reset to be done, then handles your request | |
| RoadRunnerBundle | immediately handles your request | does a reset |
You might want to manually refresh Doctrine connections before each request is handled you are using Mysql, MariaDB or other database that cannot handle long/persistent connection. For this, it's up to you to create event listener for WorkerRequestReceivedEvent
PS: PostgreSQL does not need this workaround .
To disable Symfony's resetting when request arrives, adjust your kernel class as shown bellow.
<?php
namespace App\Kernel;
- use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
+ use FluffyDiscord\RoadRunnerBundle\Kernel\RoadRunnerMicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
- use MicroKernelTrait;
+ use RoadRunnerMicroKernelTrait;
}v4.1.0
Minimum Symfony version is now 5.4 and PHP version 8.1.
Full Changelog: v4.0.0...v4.1.0
v4.0.0
What's Changed
- [BC] remove session workaround since it's no longer needed by @FluffyDiscord in #15
When updating to v4, unregister FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory from session storage_factory_id. For example remove these lines from fluffy_discord_road_runner.yaml if you added it there:
framework:
session:
# Fix for Symfony not handling sessions properly in worker mode
storage_factory_id: FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory- notice for symfony forms by @FluffyDiscord in #16
You should check out this section about Symfony Forms.
Full Changelog: v3.2.0...v4.0.0
v3.2.0
What's Changed
- secure cookie is no longer ignored in WorkerSessionFactory by @FluffyDiscord in #14
Full Changelog: v3.1.0...v3.2.0
v3.1.0
v3.0.1
Full Changelog: v3.0.0...v3.0.1