Roland Franssen :)

Results 86 comments of Roland Franssen :)

no BC breaks :+1: the new API doesnt work for our case, since we fetch/ack/nack in an abstraction layer. So we need to subscribe once, while keep reusing that subscription...

it's fair API for standard usage, i agree :+1: edit: actually i can reuse Queue: ``` $this->queue ??= $this->getConsumer()->getQueue(); $data = $this->queue->next(); ```

@nekufa https://github.com/etrias-nl/php-toolkit/commit/eeb68a98ae2d332cfafc5fd4acfef6c62a82f768 :ok_hand: on a side note, perhaps tag 1.0.0 soonish :angel:

we experienced a similar issue receive 404 dispatch a message receive 408 for a while receive 404 message lost

``` nats c sub ? Select a Stream some ? Select a Consumer some --- subject: _INBOX.nnnV8WdA5BsPx0KEl7HcWX.gPUmUrsm Headers: Nats-Pending-Bytes: 0 Status: 408 Description: Request Timeout Nats-Pending-Messages: 1 Data: nats: error:...

``` $ nats s info some Information for Stream some created 2024-04-30 04:43:55 Subjects: some Replicas: 3 Storage: File Options: Retention: WorkQueue Acknowledgments: true Discard Policy: Old Duplicate Window: 10.00s...

the original exception should not/never be swallowed, and it's a real prod debug issue we'll get an exception either way, i prefer the original one so i suggest tackling this...

**Doctrine\DBAL\Exception\DriverException** ``` An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1305 SAVEPOINT DOCTRINE_2 does not exist /app/vendor/doctrine/dbal/src/Connection.php:1943 /app/vendor/doctrine/dbal/src/Connection.php:1885 /app/vendor/doctrine/dbal/src/Connection.php:1213 /app/vendor/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php:292 /app/vendor/doctrine/dbal/src/Connection.php:1638 /app/vendor/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php:365 /app/vendor/doctrine/dbal/src/Connection.php:1535 /app/vendor/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php:322 /app/vendor/doctrine/orm/src/UnitOfWork.php:485...

perhaps simply rethrow with original exception concatted in message? https://3v4l.org/FmcJa