Skip to content

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Sep 7, 2024

…g not found errors

Exceptions are expensive GOTO statements, and in a performance relevant system not the best to be used for control flow . A FlagNotFound-Error can be expected, but the performance draw backs of exception in this case not.

relates to: open-feature/java-sdk#1095

@aepfli aepfli requested a review from a team as a code owner September 7, 2024 15:47
@aepfli aepfli force-pushed the issue/Use_Details_rather_than_exceptions branch from 8961523 to ddae11d Compare September 7, 2024 15:48
@Kavindu-Dodan
Copy link
Collaborator

This should align with open-feature/java-sdk#1095 to avoid the loss of error hook invocations :)

@toddbaert toddbaert changed the title feat(flagd-inprocess): Use program flow instead of exceptions for fla… feat: flow instead of exceptions in resolver Sep 17, 2024
@toddbaert
Copy link
Member

This should align with open-feature/java-sdk#1095 to avoid the loss of error hook invocations :)

I think there's no behavioral change here, since even before the PR you mention, if errorCode was null we threw an exception to cause the error hook invokation.

@toddbaert toddbaert self-requested a review September 17, 2024 13:23
aepfli and others added 2 commits September 17, 2024 19:56
…g not found errors Exceptions are expensive GOTO statements, and in a performance relevant system not the best to be used for control flow . A FlagNotFound-Error can be expected, but the performance draw backs of exception in this case not. Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
…s/flagd/resolver/process/InProcessResolver.java Co-authored-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@aepfli aepfli force-pushed the issue/Use_Details_rather_than_exceptions branch from ae662d6 to 4dbb4c0 Compare September 17, 2024 18:01
@toddbaert toddbaert merged commit 03dfc91 into open-feature:main Sep 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants