Skip to Content
响应式编程实战:构建弹性、可伸缩、事件驱动的分布式系统
book

响应式编程实战:构建弹性、可伸缩、事件驱动的分布式系统

by Clement Escoffier, Ken Finnigan
January 2024
Beginner to intermediate
298 pages
5h 22m
Chinese
China Machine Press
Content preview from 响应式编程实战:构建弹性、可伸缩、事件驱动的分布式系统
Quarkus
简介
|
29
2.2 Quarkus
方式
我们确信你想知道
Quarkus
如何比传统框架启动更快、消耗更少内存的所有复
杂细节,对吗?我们先解释传统框架,再讲述
Quarkus
方式。
2-2
描述了传统框架的一些众所周知的特征:
·
代码中的注解定义了预期的行为,多年来我们使用过很多这样的例子。典型
的例子包括
@Entity
@Autowired
@Inject
等。
·
各种配置文件。从定义类应该如何连接到一起,到配置持久数据源,以及这
两者之间的一切,这些配置文件都可以完成。
·
仅在启动期间用于创建运行时元数据的类,以及用于应用程序运行的类。
·
利用反射确定要调用的方法,将值设置到对象中,并仅按名称动态加载类。
传统框架
构建时
构建时
运行时
运行时
Quarkus 框架
2-2Quarkus 方式
我们当然不是说
Quarkus
没有注解、配置文件或传统框架的任何其他功能,而
是说
Quarkus
以一种非常不同的方式来处理这些功能。
为什么传统框架的这些特征会被认为是“不好的”?这是一个很好的问题,回
 
30
|
2
答这个问题需要对这些框架如何处理前面的特征有所了解 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Beginning AppleScript®

Beginning AppleScript®

Stephen G. Kochan

Publisher Resources

ISBN: 9787111743569