Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class LambdaRuntime
- Object
- LambdaRuntime
The AWS Lambda custom-runtime loop.
Why this is the first server-side target: the Lambda Runtime API is a CLIENT-side HTTP/1.1 poll over plaintext loopback, and the host serialises invocations one per instance. So a runtime needs no listening socket, no event loop, no TLS and no virtual threads - exactly the four things a general server runtime needs and this VM does not yet have. What it does need is fast start-up, which is what a translated binary is good at.
Protocol (2018-06-01): long-poll GET …/invocation/next, which blocks until an invocation arrives and returns the payload plus a Lambda-Runtime-Aws-Request-Id header; then POST the result to …/invocation/{id}/response, or the failure to …/invocation/{id}/error.
Methods
public static void run(Handler handler) | Runs the invocation loop until the process is killed, which is how a Lambda runtime is supposed to end - the host freezes or terminates the instance. |
Inherited methods
Method details
run
public static void run(Handler handler)