Apache Camel 是一个拥有 350+ 连接器的 开源 集成框架。可使用 Java、YAML 或 XML 编写路由。可在 Spring Boot、Quarkus 上运行,也可独立运行。Apach
Apache Camel 是一个拥有 350+ 连接器的 开源 集成框架。可使用 Java、YAML 或 XML 编写路由。可在 Spring Boot、Quarkus 上运行,也可独立运行。Apach
camel init hello.yaml
camel run hello.yaml或者将其添加到你现有的 Spring Boot 项目中:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>同一路由可以用 YAML、Java 或 XML 编写——选择适合你团队的方式:
YAML:
- route:
from:
uri: kafka:incoming-orders
steps:
- unmarshal:
json: {}
- to:
uri: sql:INSERT INTO orders(id, data) VALUES(:#${header.id}, :#${body})Java:
from("kafka:incoming-orders")
.unmarshal().json()
.to("sql:INSERT INTO orders(id, data) VALUES(:#${header.id}, :#${body})");| 运行时 | 功能 |
|---|---|
| Camel Spring Boot | 基于 Spring Boot 的 Camel,提供 350+ 连接器的启动器 |
| Camel Quarkus | 云原生 Camel,具备快速启动、低内存占用和原生编译 |
| Camel CLI | 从命令行运行、开发、测试和追踪路由 |
其他运行时:Camel K(Kubernetes)、Camel Karaf(OSGi)、[Camel Kafka Connector](https://camel.apache.
Apache Camel is an open source integration framework with 350+ connectors for databases, APIs, message brokers, and cloud services. Write routes in Java, YAML, or XML. Run on Spring Boot, Quarkus, or standalone with the Camel CLI. In production since 2007 — used by thousands of companies worldwide. Apache License 2.0. What is Apache Camel? | Getting Started | Components | Tooling
暂无开放 Issues,或尚未同步最近议题。