Developing in Java. Overview
With Cloud Functions, you can run applications written in Java
This service provides several runtimes with different versions. We do not recommend using runtime versions that are no longer supported.
|
Name |
Java version |
Operating system |
Preloaded |
Supported by Cloud Functions |
|
java11 |
11 |
Ubuntu 18.04 |
No |
No |
|
java17 |
17 |
Ubuntu 18.04 |
No |
No |
|
java21 |
21 |
Ubuntu 22.04 LTS |
No |
Yes |
You can add an SDK library
When creating a function version, the builder will automatically install all declared dependencies required for the function. To learn more about requirements for declaring dependencies, see Building and managing Java function dependencies.
The runtime automatically loads your code and invokes the request handler you specified. It receives the incoming request and the invocation context as arguments. The context contains additional information about the function parameters.
Cloud Functions automatically captures the application's standard output streams and sends them to the centralized logging system in Yandex Cloud. This system also logs entries about the start and end of each function execution, as well as any errors that occur during execution. For more information about the log format, see Java function execution logging.
To learn more about programming in Java or how certain constructs work, we recommend taking a basic course on Stepik