8000 [Messenger] Add keepalive support to Doctrine transport by silasjoisten · Pull Request #59601 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] Add keepalive support to Doctrine transport #59601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

silasjoisten
Copy link
Contributor
Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

This Pull Request adds keepalive support to the Doctrine Messenger transport by implementing the keepalive method in the Connection class. This enhancement aligns Doctrine transport with the existing keepalive functionality already supported by other Messenger transports, such as Redis and Beanstalkd.

The keepalive principle was introduced in Symfony 7.2 to address issues where long-running message processing could lead to premature message timeouts and redelivery. By keeping the message “alive” on the transport layer, the message remains marked as being processed until explicitly acknowledged.

Other transports like Redis and Beanstalkd have already implemented this feature. This PR extends the functionality to the Doctrine transport.

@carsonbot carsonbot changed the title Add Keepalive Support to Doctrine Messenger Transport [Messenger] Add Keepalive Support to Doctrine Messenger Transport Jan 23, 2025
@OskarStark OskarStark changed the title [Messenger] Add Keepalive Support to Doctrine Messenger Transport [Messenger][Doctrine] Add keepalive support Jan 23, 2025
@silasjoisten silasjoisten force-pushed the feature/doctrine-keepalive branch from fb7453b to 1192312 Compare January 24, 2025 07:29
@carsonbot carsonbot changed the title [Messenger][Doctrine] Add keepalive support [Messenger] Add keepalive support Jan 24, 2025
@fabpot fabpot force-pushed the feature/doctrine-keepalive branch from ad5460f to 970c07b Compare January 25, 2025 08:20
@fabpot
Copy link
Member
fabpot commented Jan 25, 2025

Thank you @silasjoisten.

@fabpot fabpot merged commit ec4b5c7 into symfony:7.3 Jan 25, 2025
4 of 11 checks passed
@OskarStark
Copy link
Contributor

Congrats on your first contribution to the Symfony Core @silasjoisten 🎉

@chalasr chalasr changed the title [Messenger] Add keepalive support [Messenger] Add keepalive support to Doctrine transport Jan 25, 2025
@silasjoisten silasjoisten deleted the feature/doctrine-keepalive branch January 26, 2025 18:55
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Mar 10, 2025
This PR was merged into the 7.3 branch.

Discussion
----------

[Messenger] Keepalive support for Doctrine & Redis

Contains #20736 which should be merged first.

Keepalive support for the Doctrine and Redis transports was added in symfony/symfony#59601 and symfony/symfony#59360, respectively.

Commits
-------

abdd3c9 [Messenger] Keepalive support for Doctrine & Redis
@fabpot fabpot mentioned this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0