Class RestateHttpServerProperties

java.lang.Object
dev.restate.sdk.springboot.RestateHttpServerProperties

@ConfigurationProperties(prefix="restate.sdk.http") public class RestateHttpServerProperties extends Object
  • Constructor Details

    • RestateHttpServerProperties

      @ConstructorBinding public RestateHttpServerProperties(@Name("port") @DefaultValue("9080") int port, @Name("disableBidirectionalStreaming") @DefaultValue("false") boolean disableBidirectionalStreaming)
  • Method Details

    • getPort

      public int getPort()
      Port to expose the HTTP server.
    • isDisableBidirectionalStreaming

      public boolean isDisableBidirectionalStreaming()
      If true, disable bidirectional streaming with HTTP/2 requests. Restate initiates for each invocation a bidirectional streaming using HTTP/2 between restate-server and the SDK. In some network setups, for example when using a load balancers that buffer request/response, bidirectional streaming will not work correctly. Only in these scenarios, we suggest disabling bidirectional streaming.