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: