Creating an HTTP endpoint
- Use either or as SDK dependency.
- Create an endpoint
- Bind one or multiple services to it
- Listen on the specified port (default
9080) for connections and requests.
Creating a Lambda handler
- Use either or as SDK dependency.
- Extend the class
BaseRestateLambdaHandler - Override the register method
- Bind one or multiple services to the builder
Using Java 21 Virtual Threads
Using Java 21 Virtual Threads
If you use a JVM >= 21, you can use virtual threads to run your services:
Troubleshooting HTTP/2 with Spring Boot
Restate communicates with your service over HTTP/2 bidirectional streaming. When using the Java/Kotlin SDK with Spring Boot, you may encounter errors such as:RestateHttpServer from sdk-http-vertx); it does not use Spring Boot’s embedded Tomcat for the Restate endpoint.