-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add documentation for the Redis transport #11341
Merged
wouterj
merged 1 commit into
symfony:4.3
from
alexander-schranz:feature/redis-messenger
May 11, 2019
Merged
Add documentation for the Redis transport #11341
wouterj
merged 1 commit into
symfony:4.3
from
alexander-schranz:feature/redis-messenger
May 11, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wouterj
added
⭐️ EU-FOSSA Hackathon
https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming
Waiting Code Merge
Docs for features pending to be merged
labels
Apr 7, 2019
Toflar
reviewed
Apr 7, 2019
OskarStark
reviewed
Apr 7, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes Redis and sometimes redis is written, we should only use one consistently
alexander-schranz
changed the title
Add documentation for the redis transport
Add documentation for the Redis transport
Apr 18, 2019
OskarStark
approved these changes
Apr 18, 2019
symfony-splitter
pushed a commit
to symfony/messenger
that referenced
this pull request
Apr 27, 2019
…ander-schranz) This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Add a redis stream transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | Yes | Fixed tickets | #28681 | License | MIT | Doc PR | symfony/symfony-docs#11341 As discussed in #28681 this will refractor @soyuka implementation of redis using the redis stream features so we don't need to handle parking the messages ourself and redis is doing it for us. Some interesting links about streams: - https://redis.io/topics/streams-intro - https://brandur.org/redis-streams ``` +-----------R | GET | -> XREADGROUP +-----------+ | | handleMessage V +-----------+ No | failed? |---------------------------+ +-----------+ | | | | Yes | V | +-----------+ No | | retry? |---------------------------+ +-----------+ | | | | Yes | V V +-----------R +-----------R | REJECT | -> XDEL | ACK | -> XACK +-----------+ +-----------+ ``` **GET**: Will use `XREADGROUP` to read the one message from the stream **REJECT**: Reject will just remove the message with `XDEL` from the stream as adding it back to the stream is handled by symfony worker itself **ACK**: Will use the `XACK` Method to ack the message for the specific group The sender will still be simple by calling the `XADD` redis function. #EU-FOSSA Commits ------- ff0b8554ea Refractor redis transport using redis streams 7162d2ec1d Implement redis transport
fabpot
added a commit
to symfony/symfony
that referenced
this pull request
Apr 27, 2019
…ander-schranz) This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Add a redis stream transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | Yes | Fixed tickets | #28681 | License | MIT | Doc PR | symfony/symfony-docs#11341 As discussed in #28681 this will refractor @soyuka implementation of redis using the redis stream features so we don't need to handle parking the messages ourself and redis is doing it for us. Some interesting links about streams: - https://redis.io/topics/streams-intro - https://brandur.org/redis-streams ``` +-----------R | GET | -> XREADGROUP +-----------+ | | handleMessage V +-----------+ No | failed? |---------------------------+ +-----------+ | | | | Yes | V | +-----------+ No | | retry? |---------------------------+ +-----------+ | | | | Yes | V V +-----------R +-----------R | REJECT | -> XDEL | ACK | -> XACK +-----------+ +-----------+ ``` **GET**: Will use `XREADGROUP` to read the one message from the stream **REJECT**: Reject will just remove the message with `XDEL` from the stream as adding it back to the stream is handled by symfony worker itself **ACK**: Will use the `XACK` Method to ack the message for the specific group The sender will still be simple by calling the `XADD` redis function. #EU-FOSSA Commits ------- ff0b855 Refractor redis transport using redis streams 7162d2e Implement redis transport
wouterj
force-pushed
the
feature/redis-messenger
branch
from
May 11, 2019 19:19
dce0577
to
c22fade
Compare
wouterj
added a commit
that referenced
this pull request
May 11, 2019
…chranz) This PR was submitted for the master branch but it was squashed and merged into the 4.3 branch instead (closes #11341). Discussion ---------- Add documentation for the Redis transport This will add documentation how to configure and using the redis transport with the messenger component. symfony/symfony#30917 #EUFOSSA Commits ------- c22fade Add documentation for the Redis transport
wouterj
added a commit
that referenced
this pull request
May 11, 2019
Congratz on your code merge and many thanks for providing docs @alexander-schranz! I've added the versionadded directive in daaf7b2, but apart from that this was perfect. |
OskarStark
added a commit
that referenced
this pull request
May 13, 2019
* 4.3: Fix PHP-CS link Update serializer.rst [#11341] Added versionadded directive Add documentation for the Redis transport Typo Fix usage of StaticJwtProvider added a note about testing newer versions of Symfony fix indention
symfony-splitter
pushed a commit
to symfony/messenger
that referenced
this pull request
Jan 28, 2020
…ander-schranz) This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Add a redis stream transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | Yes | Fixed tickets | #28681 | License | MIT | Doc PR | symfony/symfony-docs#11341 As discussed in #28681 this will refractor @soyuka implementation of redis using the redis stream features so we don't need to handle parking the messages ourself and redis is doing it for us. Some interesting links about streams: - https://redis.io/topics/streams-intro - https://brandur.org/redis-streams ``` +-----------R | GET | -> XREADGROUP +-----------+ | | handleMessage V +-----------+ No | failed? |---------------------------+ +-----------+ | | | | Yes | V | +-----------+ No | | retry? |---------------------------+ +-----------+ | | | | Yes | V V +-----------R +-----------R | REJECT | -> XDEL | ACK | -> XACK +-----------+ +-----------+ ``` **GET**: Will use `XREADGROUP` to read the one message from the stream **REJECT**: Reject will just remove the message with `XDEL` from the stream as adding it back to the stream is handled by symfony worker itself **ACK**: Will use the `XACK` Method to ack the message for the specific group The sender will still be simple by calling the `XADD` redis function. #EU-FOSSA Commits ------- ff0b8554ea Refractor redis transport using redis streams 7162d2ec1d Implement redis transport
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
⭐️ EU-FOSSA Hackathon
https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming
Messenger
Status: Reviewed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will add documentation how to configure and using the redis transport with the messenger component.
symfony/symfony#30917
#EUFOSSA