Skip to content

Improve the semantic of fallback in @SentinelResource annotation #647

Description

@sczyh30

Issue Description

Type: feature request

Describe what feature you want

At present, the fallback method of @SentinelResource annotation is designed for handling DegradeException when circuit breaking triggered. Many users were confused by it, as in traditional design, the fallback can also work for business exception, which can be more useful. So maybe we can improve the semantic of fallback in @SentinelResource annotation to support handling business exception.

Discussions are welcomed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/annotationIssues or PRs related to annotation supportkind/enhancementCategory issues or prs related to enhancement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions