Skip to content

add inline redis protocol support#3024

Merged
wwbmmm merged 7 commits intoapache:masterfrom
thweetkomputer:feat-support-inline-command
Jul 25, 2025
Merged

add inline redis protocol support#3024
wwbmmm merged 7 commits intoapache:masterfrom
thweetkomputer:feat-support-inline-command

Conversation

@thweetkomputer
Copy link
Copy Markdown
Contributor

@thweetkomputer thweetkomputer commented Jul 10, 2025

What problem does this PR solve?

Issue Number:

Problem Summary:

Add inline redis protocol support. Many redis benchmark tools use inline protocol, such as redis_benchmark, dfly_bench, although inline protocol is not guaranteed to be support for a redis-compatible database.

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

There will be no overhead for commands following normal protocol (RESP2).

  • Breaking backward compatibility:

No compatiblity issues should be introduced unless someone replies on brpc to reject inline commands.


Check List:

@thweetkomputer
Copy link
Copy Markdown
Contributor Author

@chenBright Hi, could you please restart the CI, I see all the failures happened when installing dependencies.

@wwbmmm
Copy link
Copy Markdown
Contributor

wwbmmm commented Jul 14, 2025

@thweetkomputer Thanks for your contribution! Would you please add some unit tests for this feature?

@thweetkomputer
Copy link
Copy Markdown
Contributor Author

thweetkomputer commented Jul 15, 2025

@thweetkomputer Thanks for your contribution! Would you please add some unit tests for this feature?

Hi @wwbmmm , thanks for replying, I added the test.

@wwbmmm
Copy link
Copy Markdown
Contributor

wwbmmm commented Jul 15, 2025

LGTM

Comment thread src/brpc/redis_command.cpp Outdated
@thweetkomputer
Copy link
Copy Markdown
Contributor Author

Thanks @chenBright , I fixed it.

@thweetkomputer thweetkomputer marked this pull request as draft July 24, 2025 04:47
@thweetkomputer thweetkomputer marked this pull request as ready for review July 24, 2025 05:28
Copy link
Copy Markdown
Contributor

@chenBright chenBright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thweetkomputer
Copy link
Copy Markdown
Contributor Author

Hi, how can this PR be merged?

@wwbmmm wwbmmm merged commit 353f2d0 into apache:master Jul 25, 2025
15 checks passed
wwbmmm pushed a commit that referenced this pull request Aug 2, 2025
* add inline redis protocol support

* complete code

* add check

* fix

* add inline unitest

* use find

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants