Roadrunner Versions Save

🀯 High-performance PHP application server, process manager written in Go and powered with plugins

v2023.3.4

6 months ago

πŸš€ v2023.3.4 πŸš€

πŸ”₯ Features:

RR Core:

  • βœ’οΈ Experimental features: Add support for the experimental features: Docs.

πŸ‘€ Plugins:

  • βœ’οΈ NATS driver: Replace the old JetStream client with the new one: FR, API.
  • βœ’οΈ Config driver: Add experimental support for merging two and more configuration files: FR, Docs, (thanks @hugochinchilla)
  • βœ’οΈ Headers middleware: Add support for the regular expressions for origin: FR, Docs, (thanks @orlandothoeny)

🩹 Fixes

  • πŸ› HTTP Plugin: Unable to POST relatively chunky POST: BUG, (thanks @FluffyDiscord)

v2023.3.3

6 months ago

πŸš€ v2023.3.3 [Bugfix] πŸš€

🩹 Fixes

  • πŸ› RR Core: Fix mistakenly removed RPC endpoint: ISSUE, (thanks @Kaspiman)

v2023.3.2

7 months ago

πŸš€ v2023.3.2 [Maintenance] πŸš€

🩹 Fixes

  • πŸ› Temporal: Fix incorrect log entry: ISSUE, (thanks @roxblnfk)

🧹 Chore:

  • πŸ§‘β€πŸ­ Dependencies: update project dependencies (including CVE in transitive dependencies, especially gofiber).

v2023.3.1

7 months ago

πŸš€ v2023.3.1 [Maintenance release] πŸš€

🧹 Chore:

  • πŸ§‘β€πŸ­ Dependencies: update project dependencies (including CVE in Go libraries).
  • πŸ§‘β€πŸ­ Go: Update Golang to version 1.21.3.
  • πŸ§‘β€πŸ­ Docs: Missed documentation about Dynamic Workers Scaling: link

v2023.3.0

7 months ago

Description of Changes

πŸš€ v2023.3.0 πŸš€

πŸ”₯ Features:

RR Core:

  • βœ’οΈ sdnotify support: FR, (thanks @Kaspiman), Docs: link

πŸ‘€ JOBS plugin:

  • βœ’οΈ AMQP Driver: Support for a custom routing_key in the JOBS payload: FR, (thanks @rauanmayemir)
  • βœ’οΈ JOBS plugin: Parallel pipelines start/stop/destroy initialization. If you have much number of the pipelines, this feature should significantly reduce RR startup/shutdown time: FR, (thanks @Kaspiman)

πŸ‘€ KV drivers (all):

  • βœ’οΈ Support for OTEL across all KV drivers: FR

πŸ‘€ App-Logger plugin:

  • βœ’οΈ Added new methods for your logger to log with context (message + key-values array): FR, (thanks @Baiquette)

πŸ‘€ Temporal plugin:

  • βœ’οΈ Replay API support [SINCE PHP-SDK 2.6.0]: FR
  • βœ’οΈ Add support for the Worker Versioning: FR

πŸ‘€ Service plugin:

  • βœ’οΈ Support for the user/group per-service: FR, (thanks @Kaspiman)

Configuration example:

service:
    schedule:run:
        command: "bin/console schedule:run"
        process_num: 1
        exec_timeout: 0s
        remain_after_exit: true
        service_name_in_log: false
        restart_sec: 60
        user: www-data  # <---------- [NEW]
        group: www-data # <---------- [NEW]

πŸ‘€ HTTP plugin:

  • βœ’οΈ Response streaming support FR, (thanks @roxblnfk)

Worker example:


<?php

require __DIR__ . '/vendor/autoload.php';

use Spiral\RoadRunner;

ini_set('display_errors', 'stderr');
require __DIR__ . "/vendor/autoload.php";

$worker = RoadRunner\Worker::create();
$http = new RoadRunner\Http\HttpWorker($worker);
$read = static function (): Generator {
    foreach (\file(__DIR__ . '/test.txt') as $line) {
        try {
            yield $line;
        } catch (Spiral\RoadRunner\Http\Exception\StreamStoppedException) {
            // Just stop sending data
            return;
        }
    }
};

try {
    while ($req = $http->waitRequest()) {
        $http->respond(200, $read());
    }
} catch (\Throwable $e) {
    $worker->error($e->getMessage());
}
  • βœ’οΈ Support for the 103 Early Hints via streamed response: FR, (thanks @azjezz)

Worker example:

<?php

use Spiral\RoadRunner;

ini_set('display_errors', 'stderr');
require __DIR__ . "/vendor/autoload.php";

$worker = RoadRunner\Worker::create();
$http = new RoadRunner\Http\HttpWorker($worker);
$read = static function (): Generator {
    $limit = 10;
    foreach (\file(__DIR__ . '/test.txt') as $line) {
        foreach (explode('"', $line) as $chunk) {
            try {
                usleep(50_000);
                yield $chunk;
            } catch (Spiral\RoadRunner\Http\Exception\StreamStoppedException $e) {
                // Just stop sending data
                return;
            }
            if (--$limit === 0) {
                return;
            }
        }
    }
};


try {
    while ($req = $http->waitRequest()) {
        $http->respond(103, '', headers: ['Link' => ['</style111.css>; rel=preload; as=style'], 'X-103' => ['103']], endOfStream: false);
        $http->respond(200, $read(), headers: ['X-200' => ['200']], endOfStream: true); // your regular response
    }
} catch (\Throwable $e) {
    $worker->error($e->getMessage());
}

πŸ‘€ Server plugin:

  • βœ’οΈ RAW command support: Support for raw commands, which are not validated by RR and may contain spaces. Note that this feature is only supported via .rr.yaml configuration: FR, (thanks @nunomaduro) First argument should be a command (executable) and the rest of the arguments are passed to the command as arguments.
version: "3"

server:
  command: ["php", "../../php_test_files/client.php echo pipes"]
  relay: "pipes"
  relay_timeout: "20s"
version: "3"

server:
    command:
      - "php"
      - "../../php_test_files/client.php echo pipes"
    relay: "pipes"
    relay_timeout: "20s"

🩹 Fixes:

  • πŸ› RR Core: Actualize, according to the docs ./rr jobs list/stop/resume commands: PR, (thanks @gam6itko).
  • πŸ› JOBS plugin: Correctly handle OTEL span on listener error: PR, (thanks @Kaspiman).
  • πŸ› RR tests: Fix tests failures on Darwin: PR, (thanks @shyim).
  • πŸ› Streaming: Add stream timeout (will be configurable in the next release). Fix loss of the first chunk of the streamed response.

🧹 Chore:

  • πŸ§‘β€πŸ­ Golang: Update Golang version to v1.21.
  • πŸ§‘β€πŸ­ Dependencies: update project dependencies.

v2023.3.0-rc.1

8 months ago

πŸš€ v2023.3.0-rc.1 πŸš€

πŸ”₯ Features:

πŸ‘€ AMQP driver:

  • βœ’οΈ Support for a custom routing_key in the JOBS payload: FR, (thanks @rauanmayemir, @butschster)

πŸ‘€ KV drivers (all):

  • βœ’οΈ Support for OTEL across all KV drivers: FR

πŸ‘€ App-Logger plugin:

  • βœ’οΈ Added new methods for your logger to log with context (message + key-values array): FR, (thanks @Baiquette)

v2023.3.0-beta.2

8 months ago

πŸš€ v2023.3.0-beta.2 πŸš€

πŸ”₯Features:

πŸ‘€ Temporal plugin:

  • βœ’οΈ Add support for the Worker Versioning: FR

🩹 Fixes:

  • πŸ› Streaming: Add stream timeout (will be configurable in the next release). Fix loss of the first chunk of the streamed response.

v2023.3.0-beta.1

9 months ago

πŸš€ v2023.3.0-beta.1 πŸš€

πŸ‘€ New

  • βœ’οΈ Service plugin: Support for the user/group per-service: FR, (thanks @Kaspiman)

Configuration example:

service:
    schedule:run:
        command: "bin/console schedule:run"
        process_num: 1
        exec_timeout: 0s
        remain_after_exit: true
        service_name_in_log: false
        restart_sec: 60
        user: www-data  # <---------- [NEW]
        group: www-data # <---------- [NEW]
  • βœ’οΈ Temporal plugin: Replay API support [SINCE PHP-SDK 2.6.0]: FR
  • βœ’οΈ RR core: sdnotify support: FR, (thanks @Kaspiman)
  • βœ’οΈ HTTP response streaming support: : FR, (thanks @roxblnfk)

Worker.php example:

<?php

require __DIR__ . '/vendor/autoload.php';

use Spiral\RoadRunner;

ini_set('display_errors', 'stderr');
require __DIR__ . "/vendor/autoload.php";

$worker = RoadRunner\Worker::create();
$http = new RoadRunner\Http\HttpWorker($worker);
$read = static function (): Generator {
    foreach (\file(__DIR__ . '/test.txt') as $line) {
        try {
            yield $line;
        } catch (Spiral\RoadRunner\Http\Exception\StreamStoppedException) {
            // Just stop sending data
            return;
        }
    }
};

try {
    while ($req = $http->waitRequest()) {
        $http->respond(200, $read());
    }
} catch (\Throwable $e) {
    $worker->error($e->getMessage());
}
  • βœ’οΈ HTTP plugin: Support for the 103 Early Hints via streamed response: FR, (thanks @roxblnfk)
  • βœ’οΈ RAW command support: Support for raw commands, which are not validated by RR and may contain spaces. Note that this feature is only supported via .rr.yaml configuration: FR, (thanks @nunomaduro)

Configuration:

version: "3"

server:
  command: ["php", "../../php_test_files/client.php echo pipes"]
  relay: "pipes"
  relay_timeout: "20s"
version: "3"

server:
    command:
      - "php"
      - "../../php_test_files/client.php echo pipes"
    relay: "pipes"
    relay_timeout: "20s"

First argument should be a command (executable) and the rest of the arguments are passed to the command as arguments.

  • βœ’οΈ JOBS plugin: Parallel pipelines start/stop/destroy initialization. If you have a much number of the pipelines, this feature should significantly reduce RR startup/shutdown time: FR, (thanks @Kaspiman)

🩹 Fixes

  • πŸ› RR Core: Actualize according to the docs ./rr jobs list/stop/resume commands: PR, (thanks @gam6itko).
  • πŸ› JOBS plugin: Correctly handle OTEL span on listener error: PR, (thanks @Kaspiman).
  • πŸ› RR tests: Fix tests failures on Darwin: PR, (thanks @shyim).

🧹 Chore:

  • πŸ§‘β€πŸ­ Golang: Update Golang version to v1.21.
  • πŸ§‘β€πŸ­ Dependencies: update project dependencies.

Special thanks for this beta-release to our awesome PHP team: @butschster, @roxblnfk, @wolfy-j and @msmakouz ❀️

v2023.2.2

9 months ago

πŸš€ v2023.2.2 πŸš€

🩹 Fixes

  • πŸ› JOBS plugin: Fix typo in the RPC span name: PR, (thanks @Kaspiman).
  • πŸ› SDK: Fix incorrect workers state when worker reached idleTTL state: BUG, (thanks @Aleksa1996).

🧹 Chore:

  • πŸ§‘β€πŸ­ HTTP plugin: faster PostForm/MultipartForm processing PR.
  • πŸ§‘β€πŸ­ Golang: Update Golang version to v1.21.
  • πŸ§‘β€πŸ­ Dependencies: update project dependencies.

v2023.2.1

9 months ago

Description of Changes

πŸš€ v2023.2.1 πŸš€

🩹 Fixes

  • πŸ› NATS driver: Segfault when sending job via third-party sender without consume_all option set to true: BUG, (thanks @KernelMrex).
  • πŸ› Metrics plugin: Irregular panic when declaring metrics via on_init option: BUG, (thanks @Kaspiman).
  • πŸ› Headers middleware: Inconsistent usage of CORS options, failed to apply allowed_* options with spaces: BUG, (thanks @gam6itko).

🧹 Chore:

  • πŸ§‘β€πŸ­ Dependencies: update project dependencies.