[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,92 +2,149 @@
|
||||
id: wiki-2026-0508-enterprise-service-bus
|
||||
title: Enterprise Service Bus
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-ESBU-001]
|
||||
aliases: [ESB, Service Bus, Integration Bus]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.92
|
||||
tags: [auto-reinforced, esb, enterprise-service-bus, soa, middleware, integration, msa]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [architecture, integration, soa, messaging, esb]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-20
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: java
|
||||
framework: apache-camel
|
||||
---
|
||||
|
||||
# [[Enterprise-Service-Bus|Enterprise-Service-Bus]]
|
||||
# Enterprise Service Bus
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "기업 시스템의 통역 관제소: 파편화된 수많은 서비스와 데이터베이스 사이에서 메시지를 중계하고, 포맷을 변환하며, 누가 누구에게 정보를 보낼지 관리하는 중앙 집중형 미들웨어 인프라."
|
||||
## 매 한 줄
|
||||
> **"매 ESB = SOA 시대 의 integration backbone — 매 2026 의 legacy + event mesh 의 hybrid"**. 매 hub-and-spoke 의 anti-pattern 회피 위한 message-bus pattern. 매 modern 의 Kafka + service mesh + iPaaS (MuleSoft, Boomi) 가 ESB 의 기능 의 분산.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
엔터프라이즈 서비스 버스(Enterprise-Service-Bus, ESB)는 서비스 지향 아키텍처(SOA)를 구현하기 위한 핵심 미들웨어로, 이질적인 서비스 간의 통합을 담당합니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **주요 기능**:
|
||||
* **Message Routing**: 정해진 규칙에 따라 메시지를 목적지로 전달. ([[Control-Systems-Engineering|Control-Systems-Engineering]]와 연결)
|
||||
* **Transformation**: 서비스 간 서로 다른 데이터 포맷(XML -> JSON 등) 변환.
|
||||
* **Orchestration**: 여러 서비스를 순차적으로 호출하여 하나의 비즈니스 프로세스 완성. (Standard-Operating-Procedure와 연결)
|
||||
* **Protocol Conversion**: HTTP, FTP, AMQP 등 다양한 통신 규약 지원.
|
||||
2. **왜 중요한가?**:
|
||||
* 서비스 간의 직접적인 결합(Loose coupling)을 방지하여 한 시스템의 변경이 전체 시스템에 미치는 영향을 최소화하기 때문임.
|
||||
### 매 ESB 의 6 capabilities
|
||||
- **Routing**: 매 content-based, header-based.
|
||||
- **Transformation**: 매 XML↔JSON↔Avro, schema mapping.
|
||||
- **Protocol bridging**: 매 SOAP↔REST↔AMQP↔JMS↔FTP.
|
||||
- **Orchestration**: 매 multi-step workflow (BPEL, Camel routes).
|
||||
- **Mediation**: 매 versioning, throttling, security policy.
|
||||
- **Monitoring**: 매 audit, SLA tracking, error queues.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌**: 과거 SOA 시대에는 ESB 가 모든 것의 중심인 무거운 통합 정책(Heavyweight) 정책이었으나, 현대 MSA 정책 하에서는 ESB 대신 가벼운 'API Gateway'와 'Service Mesh' 정책으로 기능이 파편화되어 분산되는 추세임(RL Update). ([[Technical-Architecture|Technical-Architecture]]와 연결)
|
||||
- **정책 변화(RL Update)**: 이제는 단순 메시지 전달 정책을 넘어, 분산 시스템의 트래픽 정책을 AI 가 실시간으로 제어하고 장애를 감지하여 경로를 우회시키는 '지능형 이벤트 메시징 정책'으로 진화 중임.
|
||||
### 매 versus alternatives
|
||||
- **Point-to-point**: 매 N×N integration — ESB 의 N+1.
|
||||
- **Hub-and-spoke**: 매 single hub bottleneck — ESB 의 distributed.
|
||||
- **Event mesh (modern)**: 매 Kafka + Schema Registry — 매 ESB 보다 throughput ↑, transformation logic 의 service-side.
|
||||
- **iPaaS**: 매 cloud-native ESB — 매 SaaS connector 의 thousand+.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Technical-Architecture|Technical-Architecture]], [[Standard-Operating-Procedure|Standard-Operating-Procedure]], [[Control-Systems-Engineering|Control-Systems-Engineering]], [[Reliability|Reliability]], [[Scalability|Scalability]]
|
||||
- **Key [[goal|goal]]**: Loose coupling in heterogeneous[[_system|system]]s.
|
||||
---
|
||||
### 매 응용
|
||||
1. Bank legacy mainframe ↔ digital channel integration.
|
||||
2. ERP (SAP) ↔ CRM (Salesforce) sync.
|
||||
3. B2B EDI translation (X12, EDIFACT).
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
## 💻 패턴
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
### Apache Camel content-based router
|
||||
```java
|
||||
from("jms:queue:incomingOrders")
|
||||
.choice()
|
||||
.when(jsonpath("$.priority == 'HIGH'"))
|
||||
.to("kafka:high-priority-orders")
|
||||
.when(jsonpath("$.region == 'EU'"))
|
||||
.to("amqp:eu-orders")
|
||||
.otherwise()
|
||||
.to("jms:queue:standardOrders")
|
||||
.end();
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### XML → JSON transformation
|
||||
```java
|
||||
from("file:input/orders?include=.*\\.xml")
|
||||
.unmarshal().jacksonXml(Order.class)
|
||||
.marshal().json(JsonLibrary.Jackson)
|
||||
.to("http://api.example.com/orders");
|
||||
```
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Saga orchestration (Camel)
|
||||
```java
|
||||
from("direct:placeOrder")
|
||||
.saga()
|
||||
.compensation("direct:cancelOrder")
|
||||
.timeout(java.time.Duration.ofMinutes(5))
|
||||
.to("direct:reserveInventory")
|
||||
.to("direct:chargePayment")
|
||||
.to("direct:scheduleShipment");
|
||||
```
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Dead letter channel
|
||||
```java
|
||||
errorHandler(deadLetterChannel("jms:queue:dlq")
|
||||
.maximumRedeliveries(3)
|
||||
.redeliveryDelay(2000)
|
||||
.useExponentialBackOff());
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Modern replacement: Kafka + KStreams
|
||||
```java
|
||||
StreamsBuilder builder = new StreamsBuilder();
|
||||
builder.stream("orders", Consumed.with(Serdes.String(), orderSerde))
|
||||
.filter((k, v) -> v.getAmount() > 1000)
|
||||
.mapValues(o -> enrichWithCustomer(o))
|
||||
.to("high-value-orders");
|
||||
```
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### Service mesh sidecar (Istio) replacement
|
||||
```yaml
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: order-routing
|
||||
spec:
|
||||
http:
|
||||
- match:
|
||||
- headers:
|
||||
x-region:
|
||||
exact: EU
|
||||
route:
|
||||
- destination:
|
||||
host: order-service-eu
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Greenfield microservices | Kafka + service mesh, ESB X |
|
||||
| Legacy mainframe + SaaS integration | iPaaS (MuleSoft, Boomi) |
|
||||
| Heavy XML/SOAP B2B | Apache Camel or MuleSoft |
|
||||
| Event-driven architecture | Kafka + Schema Registry |
|
||||
| Complex orchestration | Camel + Saga or Temporal.io |
|
||||
|
||||
**기본값**: 매 2026 의 new project — Kafka + service mesh. 매 legacy integration — Camel or iPaaS. 매 traditional ESB (WSO2, Mule 3) 의 신규 도입 X.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Service-Oriented Architecture (SOA)]] · [[Enterprise Integration Patterns]]
|
||||
- 변형: [[Event Mesh]] · [[iPaaS]] · [[Service Mesh]]
|
||||
- 응용: [[B2B Integration]] · [[Legacy Modernization]] · [[API Gateway]]
|
||||
- Adjacent: [[Message Queue]] · [[Apache Kafka]] · [[Saga Pattern]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 EIP pattern matching, 매 Camel DSL generation, 매 XSLT/XPath debugging, 매 legacy SOAP WSDL → REST OpenAPI 변환.
|
||||
**언제 X**: 매 production routing rules 의 직접 deploy — 매 정확한 schema validation, dead-letter handling 의 review 필요. 매 transformation logic 의 round-trip test 필수.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **God-ESB**: 매 모든 business logic 의 ESB 의 집중 — 매 bus 의 monolith. 매 logic 의 service-side.
|
||||
- **Synchronous chains**: 매 ESB 의 long sync calls — 매 cascading failure. 매 async + saga.
|
||||
- **No schema governance**: 매 transformation 의 implicit contract — 매 producer change 시 silent break.
|
||||
- **2026 의 new ESB 도입**: 매 platform team 의 maintenance cost ↑ — 매 Kafka + iPaaS 의 분산.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Hohpe & Woolf "Enterprise Integration Patterns" 2003, Apache Camel docs 4.x, Gartner ESB→iPaaS 의 2024 report).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — Camel patterns, modern Kafka/mesh replacement, iPaaS context 추가 |
|
||||
|
||||
Reference in New Issue
Block a user