Google announces Java 11 support on its serverless computing platform Cloud Functions
Google announced support for Java 11 on its serverless computing platform Cloud Functions.
In the article, Guillaume Laforge explains: “With the new Java 11 runtime beta for Google Cloud Functions, Java developers can now write their functions using the Java programming language (a language commonly used in the enterprise) as well as Node.js, Go or Python.
As a serverless platform, Cloud Functions allows users to work locally or in the cloud without having to configure servers. The introduction of Java 11 to the platform means that users can now write cloud functions in their preferred JVM languages (Java, Kotlin, Groovy, Scala, etc.) through the Java Functions Framework, as well as Spring Cloud Functions and Micronaut.
There are two types of functions in serverless computing: HTTP and backend functions. HTTP functions are used to respond to HTTP events, while backend functions are used to handle events originating from cloud and GCP services. The Java Functions Framework provides APIs that can be used to write these functions.
In addition, users can use the Functions Framework in other environments, such as Cloud Run (to run containers), Google Kubernetes Engine, or any other cloud or local environment where Java is running.
And in addition to Java’s functions framework, Google now offers standard support for the Micronaut Framework and Spring Cloud Function projects. Developers can choose the framework they want to use and create HTTP and backend functions based on the model of that framework.