Skip to content

feat(java): add FlagResolverService for HTTP integration#274

Open
nicklasl wants to merge 2 commits intomainfrom
java/acting-local-resolver-service
Open

feat(java): add FlagResolverService for HTTP integration#274
nicklasl wants to merge 2 commits intomainfrom
java/acting-local-resolver-service

Conversation

@nicklasl
Copy link
Member

Summary

  • Add FlagResolverService to proxy resolve/apply requests from client SDKs through the local provider
  • Enable low-latency flag resolution without external network calls
  • Add applyFlags method to ResolverApi and implementations for deferred flag application

Test plan

  • Unit tests for FlagResolverService (24 tests)
  • Tests for complex evaluation context with nested structs and lists
  • All existing tests pass

🤖 Generated with Claude Code

nicklasl and others added 2 commits February 12, 2026 16:50
Add service layer to proxy resolve/apply requests from client SDKs
through the local provider, enabling low-latency flag resolution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename FlagResolverRequest -> ConfidenceHttpRequest
- Rename FlagResolverResponse -> ConfidenceHttpResponse
- Change body from InputStream to byte[]
- Remove static factory methods from interface
- Update README with servlet example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nicklasl nicklasl marked this pull request as ready for review February 13, 2026 14:33
@nicklasl
Copy link
Member Author

Needs spotify/confidence-sdk-js#294 for best integration.

@@ -129,7 +129,6 @@
<groupId>com.google.protobuf</groupId>
Copy link
Member Author

Choose a reason for hiding this comment

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

this whole package is shaded and embedded into the jar.

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.

1 participant