diff --git a/app-server/docker.md b/app-server/docker.md index 869dafa..ed64d7d 100644 --- a/app-server/docker.md +++ b/app-server/docker.md @@ -24,7 +24,7 @@ FROM php:8.3-alpine # https://github.com/mlocati/docker-php-extension-installer # https://github.com/docker-library/docs/tree/0fbef0e8b8c403f581b794030f9180a68935af9d/php#how-to-install-more-php-extensions RUN --mount=type=bind,from=mlocati/php-extension-installer:2,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \ - install-php-extensions @composer-2 opcache zip intl sockets profobuf + install-php-extensions @composer-2 opcache zip intl sockets protobuf COPY --from=roadrunner /usr/bin/rr /usr/local/bin/rr diff --git a/kv/overview-kv.md b/kv/overview-kv.md index 479f02f..db65698 100644 --- a/kv/overview-kv.md +++ b/kv/overview-kv.md @@ -49,8 +49,8 @@ otel: {% endcode %} -After that, you can see traces in your [Jaeger](https://www.jaegertracing.io/), [Uptrace](https://uptrace.dev/), [Zipkin](https://zipkin.io/) or any -other opentelemetry compatible tracing system. +After that, you can see traces in your [Dash0](https://www.dash0.com/), [Jaeger](https://www.jaegertracing.io/), [Uptrace](https://uptrace.dev/), +[Zipkin](https://zipkin.io/) or any other opentelemetry compatible tracing system. ## Configuration @@ -356,7 +356,7 @@ To make it easy to use the KV proto API in PHP, we provide a [GitHub repository](https://github.com/roadrunner-php/roadrunner-api-dto), that contains all the generated PHP DTO classes proto files, making it easy to work with these files in your PHP application. -- [API](https://github.com/roadrunner-server/api/blob/master/kv/v1/kv.proto) +- [API](https://github.com/roadrunner-server/api/blob/master/proto/kv/v1/kv.proto) ### RPC API diff --git a/php/worker.md b/php/worker.md index 436a439..9f80770 100644 --- a/php/worker.md +++ b/php/worker.md @@ -86,10 +86,11 @@ while (true) { // // Reply by the 500 Internal Server Error response $psr7->respond(new Response(500, [], 'Something Went Wrong!')); - + // Additionally, we can inform the RoadRunner that the processing - // of the request failed. - $psr7->getWorker()->error((string)$e); + // of the request failed. Use error instead of response to indicate + // worker error, do not use both. + // $psr7->getWorker()->error((string)$e); } } ``` @@ -222,7 +223,6 @@ final class HttpDispatcher implements DispatcherInterface $worker->respond(new Response(200, [], 'Hello RoadRunner!')); } catch (\Throwable $e) { $worker->respond(new Response(500, [], 'Something Went Wrong!')); - $worker->getWorker()->error((string)$e); } } } diff --git a/queues/nats.md b/queues/nats.md index 3c34a48..41190ed 100644 --- a/queues/nats.md +++ b/queues/nats.md @@ -76,6 +76,10 @@ jobs: `stream` - stream name. +{% hint style="info" %} +To prevent duplicate message consumption, ensure that each pipeline is configured with a unique NATS stream. Using the same stream for multiple pipelines will result in the same message being processed multiple times. +{% endhint %} + ### Deliver new `deliver_new` - the consumer will only start receiving messages that were created after the consumer was created.