MicroProfile 编程模型支持
Liberty 支持 Eclipse MicroProfile 编程模型来开发微服务应用程序。 MicroProfile 补充了 Java™ Platform, Enterprise Edition (Java EE) 7 和 8 编程模型,以及 Liberty 支持的 Jakarta EE 9.1 和 10 个编程模型。
背景
有关 MicroProfile的更多信息,请参阅 Open Liberty Web 站点。
虽然 Java EE 为创建微服务提供了坚实的基础,但它仍需要各种技术和编程模型来更好地适应微服务应用程序。 IBM® 与其他公司合作启动 MicroProfile,这是开发者,社区和供应商之间的开放式协作。
microprofile.io 社区致力于围绕微服务和 Enterprise Java 进行快速创新。 此社区构建并集成最适合遵循微服务体系结构模式的 Java 云本机应用程序的技术。 协作者可确定、实现、优化和改进轻量级微服务中常用的技术。 协作者还可演示如何跨各种运行时环境使用这些技术。 在 microprofile.io 社区中,每个 MicroProfile 发行版都在协作进展中的特定时间点定义一组技术。
MicroProfile 是一个开放式源代码项目。 要开始参与开放式源代码组,请访问 MicroProfile Web 站点 或 Eclipse Foundation 上的 MicroProfile。
MicroProfile 技术
技术 | 规范参考 | Liberty 功能部件 | Liberty | Liberty Core | Open Liberty | Java EE 或 Jakarta EE 版本对齐 |
---|---|---|---|---|---|---|
MicroProfile 6.1 | 规范 | microProfile-6.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
配置 3.1 | 规范 | mpConfig-3.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
度量 5.1 | 规范 | mpMetrics-5.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
遥测 1.1 | 规范 | mpTelemetry-1.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
MicroProfile 6.0 | 规范 | microProfile-6.0 |
✔ | ✔ | ✔ | Jakarta EE 10 |
JWT 传播 2.1 | 规范 | mpJwt-2.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
度量 5.0 | 规范 | mpMetrics-5.0 |
✔ | ✔ | ✔ | Jakarta EE 10 |
开放式 API 3.1 | 规范 | mpOpenAPI-3.1 |
✔ | ✔ | ✔ | Jakarta EE 10 |
遥测 1.0 | 规范 | mpTelemetry-1.0 |
✔ | ✔ | ✔ | Jakarta EE 10 |
MicroProfile 5.0 | 规范 | microProfile-5.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
配置 3.0 | 规范 | mpConfig-3.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
容错 4.0 | 规范 | mpFaultTolerance-4.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
运行状况检查 4.0 | 规范 | mpHealth-4.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
JWT 传播 2.0 | 规范 | mpJwt-2.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
度量 4.0 | 规范 | mpMetrics-4.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
打开 API 3.0 | 规范 | mpOpenAPI-3.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
打开跟踪 3.0 | 规范 | mpOpenTracing-3.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
Rest 客户机 3.0 | 规范 | mpRestClient-3.0 |
✔ | ✔ | ✔ | Jakarta EE 9.1 |
MicroProfile 4.1 | 规范 | microProfile-4.1 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
运行状况检查 3.1 | 规范 | mpHealth-3.1 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
MicroProfile 4.0 | 规范 | microProfile-4.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Config 2.0 | 规范 | mpConfig-2.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Fault Tolerance 3.0 | 规范 | mpFaultTolerance-3.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Health Check 3.0 | 规范 | mpHealth-3.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
JWT Propagation 1.2 | 规范 | mpJwt-1.2 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Metrics 3.0 | 规范 | mpMetrics-3.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Open API 2.0 | 规范 | mpOpenAPI-2.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Open Tracing 2.0 | 规范 | mpOpenTracing-2.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
Rest Client 2.0 | 规范 | mpRestClient-2.0 |
✔ | ✔ | ✔ | 雅加达 EE 8 |
MicroProfile 3.3 | 规范 | microProfile-3.3 |
✔ | ✔ | ✔ | Java EE 8 |
Config 1.4 | 规范 | mpConfig-1.4 |
✔ | ✔ | ✔ | Java EE 8 |
Fault Tolerance 2.1 | 规范 | mpFaultTolerance-2.1 |
✔ | ✔ | ✔ | Java EE 8 |
Health Check 2.2 | 规范 | mpHealth-2.2 |
✔ | ✔ | ✔ | Java EE 8 |
Metrics 2.3 | 规范 | mpMetrics-2.3 |
✔ | ✔ | ✔ | Java EE 8 |
Rest Client 1.4 | 规范 | mpRestClient-1.4 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 3.2 | 规范 | microProfile-3.2 |
✔ | ✔ | ✔ | Java EE 8 |
Health Check 2.1 | 规范 | mpHealth-2.1 |
✔ | ✔ | ✔ | Java EE 8 |
Metrics 2.2 | 规范 | mpMetrics-2.2 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 3.0 | 规范 | microProfile-3.0 |
✔ | ✔ | ✔ | Java EE 8 |
Health Check 2.0 | 规范 | mpHealth-2.0 |
✔ | ✔ | ✔ | Java EE 8 |
Metrics 2.0 | 规范 | mpMetrics-2.0 |
✔ | ✔ | ✔ | Java EE 8 |
Rest Client 1.3 | 规范 | mpRestClient-1.3 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 2.2 | 规范 | microProfile-2.2 |
✔ | ✔ | ✔ | Java EE 8 |
Fault Tolerance 2.0 | 规范 | mpFaultTolerance-2.0 |
✔ | ✔ | ✔ | Java EE 8 |
Open API 1.1 | 规范 | mpOpenAPI-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
Open Tracing 1.3 | 规范 | mpOpenTracing-1.3 |
✔ | ✔ | ✔ | Java EE 8 |
Rest Client 1.2 | 规范 | mpRestClient-1.2 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 2.1 | 规范 | microProfile-2.1 |
✔ | ✔ | ✔ | Java EE 8 |
Open Tracing 1.2 | 规范 | mpOpenTracing-1.2 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 2.0 | 规范 | microProfile-2.0 |
✔ | ✔ | ✔ | Java EE 8 |
Config 1.3 | 规范 | mpConfig-1.3 |
✔ | ✔ | ✔ | Java EE 8 |
Fault Tolerance 1.1 | 规范 | mpFaultTolerance-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
JWT Propagation 1.1 | 规范 | mpJwt-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
Open Tracing 1.1 | 规范 | mpOpenTracing-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
Rest Client 1.1 | 规范 | mpRestClient-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
Java 2.0 上下文和依赖性注入 | JSR 365 | cdi-2.0 |
✔ | ✔ | ✔ | Java EE 8 |
Java API for RESTful Web Services (JAX-RS) 2.1 | JSR 370 | jaxrs-2.1 |
✔ | ✔ | ✔ | Java EE 8 |
Java API for JSON Processing (JSON-P) 1.1 | JSR 374 | jsonp-1.1 |
✔ | ✔ | ✔ | Java EE 8 |
Java API for JSON Binding (JSON-B) 1.0 | JSR 367 | jsonb-1.0 |
✔ | ✔ | ✔ | Java EE 8 |
MicroProfile 1.4 | 规范 | microProfile-1.4 |
✔ | ✔ | ✔ | Java EE 7 |
Config 1.3 | 规范 | mpConfig-1.3 |
✔ | ✔ | ✔ | Java EE 7 |
Fault Tolerance 1.1 | 规范 | mpFaultTolerance-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
JWT Propagation 1.1 | 规范 | mpJwt-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
Open Tracing 1.1 | 规范 | mpOpenTracing-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
Rest Client 1.1 | 规范 | mpRestClient-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
✔ | ||||||
MicroProfile 1.3 | 规范 | microProfile-1.3 |
✔ | ✔ | ✔ | Java EE 7 |
配置 1.2 | 规范 | mpConfig-1.2 |
✔ | ✔ | ✔ | Java EE 7 |
度量 1.1 | 规范 | mpMetrics-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
开放式 API 1.0 | 规范 | mpOpenAPI-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
打开跟踪 1.0 | 规范 | mpOpenTracing-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
REST 客户机 1.0 | 规范 | mpRestClient-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
MicroProfile 1.2 | 规范 | microProfile-1.2 |
✔ | ✔ | ✔ | Java EE 7 |
Config 1.1 | 规范 | mpConfig-1.1 |
✔ | ✔ | ✔ | Java EE 7 |
Metrics 1.0 | 规范 | mpMetrics-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
Health Check 1.0 | 规范 | mpHealth-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
JWT Propagation 1.0 | 规范 | mpJwt-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
Fault Tolerance 1.0 | 规范 | mpFaultTolerance-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
MicroProfile 1.0 | pom | microProfile-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
Java API for RESTful Web Services (JAX-RS) 2.0 | JSR 339 | jaxrs-2.0 |
✔ | ✔ | ✔ | Java EE 7 |
Java 上下文和依赖关系注入 (Web Bean) 1.2 | JSR 346 | cdi-1.2 |
✔ | ✔ | ✔ | Java EE 7 |
Java API for JSON Processing (JSON-P) 1.0 | JSR 353 | jsonp-1.0 |
✔ | ✔ | ✔ | Java EE 7 |
注: MicroProfile 1.0 功能在 WebSphere® Application Server Traditional 中可用,因为 MicroProfile 1.0 仅包含三个 Java EE 7 规范 :JAX-RS 2.0, CDI 1.2和 JSON-P 1.0。 后续 MicroProfile 发行版是 Liberty 产品。