下载《Quarkus 的 Java 开发者指南》电子书
Java 电子书

> 
> 一本新的展示了开发者如何继续使用 Java 框架来构建新的无服务器功能的电子书。
> 
> 
> 


![](/data/attachment/album/202108/17/100432yslvlw6s2d462w41.jpg "Coffee beans and a cup of coffee")


[无服务器](https://opensource.com/article/21/1/devapps-strategies) 架构已经成为一种高效的解决方案，无论是物理服务器、虚拟机还是云环境，都可以根据实际工作负载调整超额配置和不足配置资源（如 CPU、内存、磁盘、网络）。然而，在选择新的编程语言来开发无服务器应用时，Java 开发者有一个担忧。对于云上的无服务器部署，尤其是 [Kubernetes](https://opensource.com/article/19/6/reasons-kubernetes)，Java 框架似乎过于沉重和缓慢。


作为 Java 开发者，如果可以继续使用 Java 框架来构建传统的云原生微服务以及同时构建新的无服务器功能呢？这种方法应该是令人兴奋的，因为你不必担心新的无服务器应用框架的学习曲线会很陡峭。


此外，如果 Java 框架不仅可以为开发者提供熟悉技术的乐趣，还可以在启动时以毫秒为单位优化 Kubernetes 中的 Java 无服务器功能，并提供微小的内存足迹，又会怎样？


### 什么是 Quarkus？


[Quarkus](https://quarkus.io/) 是一个新的 Java 框架，可以为 Java 开发者、企业架构师和 DevOps 工程师提供这些功能和好处。它旨在设计无服务器应用，并编写云原生微服务，以便在云基础设施（例如 Kubernetes）上运行。


Quarkus 还支持一个名为 [Funqy](https://quarkus.io/guides/funqy) 的可移植 Java API 扩展，供开发者编写和部署无服务器功能到异构无服务器运行时。


Quarkus Funqy 使开发者能够将 [CloudEvents](https://cloudevents.io/) 与 Knative 环境中的无服务器函数绑定，以处理反应式流。这有利于开发者建立一个通用的消息传递格式来描述事件，提高多云和混合云平台之间的互操作性。


在我的新电子书 《[Java 无服务器功能指南](https://opensource.com/downloads/java-serverless-ebook)》的帮助下，开始你的 Quarkus 之旅。与他人分享你的 Quarkus 经验，让大家都能享受到用 Java 和 Quarkus 进行的无服务器开发。




---


via: <https://opensource.com/article/21/8/java-quarkus-ebook>


作者：[Daniel Oh](https://opensource.com/users/daniel-oh) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
[Serverless](https://opensource.com/article/21/1/devapps-strategies) architecture has already become an efficient solution to align overprovisioning and underprovisioning resources (e.g., CPU, memory, disk, networking) with actual workloads regardless of physical servers, virtual machines, and cloud environments. Yet, there is a concern for Java developers when choosing new programming languages to develop serverless applications. The Java framework seems too heavyweight and slow for serverless deployment on the cloud, especially [Kubernetes](https://opensource.com/article/19/6/reasons-kubernetes).


What if you, Java developer, could keep using the Java framework to build traditional cloud-native microservices as well as new serverless functions at the same time? This approach should be exciting since you don’t have to worry about a steep learning curve for new serverless application frameworks.

Furthermore, what if the Java framework could not only provide developers the joy of familiar technologies but also optimize Java serverless functions in Kubernetes by milliseconds at startup and offer tiny memory footprints?

## What is Quarkus?

[Quarkus](https://quarkus.io/) is the new Java framework that can provide these features and benefits to Java developers, enterprise architects, and DevOps engineers. It aims to design serverless applications and write cloud-native microservices for running on cloud infrastructures (for example, Kubernetes).

Quarkus also supports a portable Java API extension named [Funqy](https://quarkus.io/guides/funqy) for developers to write and deploy serverless functions to heterogeneous serverless runtimes.

Quarkus Funqy enables developers to bind [CloudEvents](https://cloudevents.io/) for handling reactive streams with serverless functions on the Knative environment. This is beneficial for developers building a common messaging format to describe events and increase interoperability among multi- and hybrid cloud platforms.

Start your journey with Quarkus with the help of my new eBook, [ A guide to Java serverless functions](https://opensource.com/downloads/java-serverless-ebook). Share your Quarkus experiences with others so everyone can enjoy serverless development with Java and Quarkus.

## Comments are closed.