Skip to content

feat: add Spring Boot gRPC actor hosting - #1869

Open
2748109647 wants to merge 1 commit into
dapr:masterfrom
2748109647:feat/spring-boot-grpc-actors-1839
Open

2748109647 wants to merge 1 commit into
dapr:masterfrom
2748109647:feat/spring-boot-grpc-actors-1839

Conversation

@2748109647

Copy link
Copy Markdown

Summary

  • Add dapr.actors.transport with HTTP as the default. When set to grpc, start the actor event subscription after ApplicationReadyEvent, after application runners have registered actor types.
  • Expose the started ActorEventSubscription as a bean and close it when the application context shuts down.
  • Add auto-configuration tests for the default HTTP behavior, gRPC property binding, startup, bean exposure, and shutdown.
  • Add a Spring Boot actor host integration test that runs daprd without an app port, and document the configuration and protocol requirements.

Fixes #1839

Validation

  • Focused auto-configuration tests passed: 2 tests, 0 failures.
  • Checkstyle passed with 0 violations.
  • All sdk-tests integration test sources compiled, including SpringBootActorGrpcIT.
  • The container-backed integration test was not run locally because Docker is unavailable in this environment.

Signed-off-by: Alpha <2748109647@qq.com>
@2748109647
2748109647 requested review from a team as code owners October 25, 2026 14:10
@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.11%. Comparing base (15bec05) to head (71be166).

Files with missing lines Patch % Lines
...ng/boot/properties/actors/DaprActorProperties.java 0.00% 8 Missing ⚠️
...re/actors/DaprActorEventSubscriptionLifecycle.java 66.66% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1869      +/-   ##
============================================
- Coverage     80.21%   80.11%   -0.11%     
- Complexity     2801     2806       +5     
============================================
  Files           273      276       +3     
  Lines          8278     8306      +28     
  Branches        896      896              
============================================
+ Hits           6640     6654      +14     
- Misses         1272     1284      +12     
- Partials        366      368       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

Spring Boot autoconfiguration for hosting actors over gRPC

1 participant