feat: add Sentinel RocketMQ 5.x adapter module - #4377
Open
oss-sentinel-ai wants to merge 1 commit into
Open
Conversation
- Create spring-cloud-alibaba-sentinel-rocketmq module for RocketMQ 5.x - Implement SentinelProducerInterceptor for producer flow control - Implement SentinelConsumerInterceptor for consumer flow control - Add auto-configuration with customizable properties - Support topic-based resource naming for fine-grained control - Include unit tests for auto-configuration - Add module to parent pom and dependencies BOM This module provides Sentinel integration for Apache RocketMQ 5.x, which is not supported by the existing sentinel-rocketmq-adapter (that only supports RocketMQ 4.x). Fixes alibaba#3854
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds a new module
spring-cloud-alibaba-sentinel-rocketmqthat provides Sentinel integration for Apache RocketMQ 5.x.Problem
The existing
sentinel-rocketmq-adaptermodule in the Sentinel project only supports RocketMQ 4.x. With RocketMQ 5.x having a completely different API, we need a new adapter module specifically designed for RocketMQ 5.x.Solution
Created a new Spring Boot starter module that:
SentinelProducerInterceptorfor producer flow control and circuit breakingSentinelConsumerInterceptorfor consumer flow control and circuit breakingSendMessageHookandConsumeMessageHook)Changes
spring-cloud-alibaba-sentinel-rocketmqmodule@ConditionalOnPropertysupportConfiguration Example
Testing
Fixes #3854
Automated PR by github-manager-bot