Part 3 · আর্কিটেকচার 📖 ১১ মিনিট পড়া 📝 ২০টি কুইজ

Enterprise Service Bus (ESB)

বড় enterprise-এ heterogeneous system-এর central integration hub।

📝 কুইজে যান

একটি বড় ব্যাংকে: Core banking system (১৯৯০-এর Mainframe), CRM (Salesforce), HR (Oracle), ATM network, mobile app, API gateway — সব আলাদা technology, format, protocol-এ কথা বলে। Direct point-to-point integration করলে — n²/2 connection লাগবে। সমাধান: একটি central ESB, সবাই সেখানে যোগাযোগ করে।

ESB কী?

Enterprise Service Bus = একটি integration platform যা heterogeneous system-গুলোর মধ্যে message routing, transformation, ও orchestration handle করে। ২০০০-এর দশকে SOA (Service-Oriented Architecture)-এর central concept।

যে সমস্যা সমাধান করে

Spaghetti Integration

N system point-to-point integrate করলে — N(N-1)/2 connection।

  • ৫ system = ১০ connection
  • ১০ system = ৪৫ connection
  • ২০ system = ১৯০ connection — চলে না

ESB Solution

সবাই ESB-তে — N connection মাত্র। ESB transform/route করে।

Without ESB: With ESB: [A]---[B] [A] [B] \\ /\\ / \\ / X X [ESB] / \\/ \\ / \\ [C]---[D] [C] [D]

ESB-এর Features

  • Message Routing: Content-based routing — message-এর data দেখে কোন system-এ পাঠানো।
  • Message Transformation: XML → JSON, format conversion।
  • Protocol Translation: SOAP ↔ REST ↔ FTP ↔ JMS।
  • Service Orchestration: Multi-step business workflow।
  • Service Choreography: Event-based collaboration।
  • Security: Authentication, authorization centralized।
  • Monitoring: Centralized logging।
  • Adapter Library: Common system-এর জন্য pre-built connector।
  • MuleSoft Anypoint: Most popular commercial।
  • WSO2 ESB: Open-source, enterprise-ready।
  • IBM Integration Bus: Enterprise classic।
  • Oracle Service Bus: Oracle ecosystem।
  • Apache Camel: Lightweight integration framework।
  • JBoss Fuse: Red Hat-এর open ESB।
  • Microsoft BizTalk: Windows enterprise।

ESB vs Message Broker

Message Broker

  • Async messaging primarily
  • Simple routing
  • No transformation typical
  • Lightweight
  • Kafka, RabbitMQ

ESB

  • Full integration platform
  • Complex routing + transformation
  • Orchestration logic
  • Heavyweight
  • MuleSoft, WSO2

ESB-তে message broker থাকে, কিন্তু ESB অনেক বেশি — full integration platform।

ESB vs Microservices

Microservice আর্কিটেকচার ESB-এর সমালোচনা থেকে এসেছে।

ESB Approach

  • "Smart pipes, dumb endpoints"
  • ESB-তে business logic
  • Centralized — vendor lock-in
  • Heavy, slow deployment
  • SOAP/XML era

Microservices Approach

  • "Smart endpoints, dumb pipes"
  • Service-এ business logic
  • Decentralized
  • Light pipe (REST, message broker)
  • Modern era

আধুনিক বিকল্প

২০২৪-এ pure ESB rare — replaced by:

  • API Gateway: External API entry point।
  • Service Mesh (Istio, Linkerd): Service-to-service communication।
  • Event Streaming (Kafka): Async event-driven।
  • iPaaS (Integration Platform as a Service): MuleSoft cloud, Boomi — modern ESB cloud।
  • Workflow tools (Temporal, Airflow): Orchestration।

কখন ESB এখনও relevant?

  • Legacy enterprise — অনেক old system integration।
  • Banking, insurance, telecom-এ existing ESB।
  • Strict governance requirement।
  • Complex transformation pipeline।

সুবিধা

  • Reduced point-to-point integration।
  • Centralized monitoring।
  • Reusable adapter।
  • Standard transformation।

অসুবিধা

  • Single Point of Failure: ESB down = সব broken।
  • Performance bottleneck: সব traffic ESB-তে।
  • Vendor lock-in: Proprietary ESB থেকে migrate কঠিন।
  • Heavy: Resource-intensive।
  • Centralized governance: Slow innovation।
  • Cost: Commercial ESB ব্যয়বহুল।

বাস্তব উদাহরণ

  • Banks (Bangladesh-ও): Core banking + ATM + mobile + Internet banking integrate।
  • Insurance: Policy, claims, agent system।
  • Telecom: Billing, CRM, network OSS।
  • Government: NID, tax, passport service integration।

সাধারণ ভুল ধারণা

  1. "ESB obsolete": Legacy enterprise-এ এখনও দরকার।
  2. "ESB = message queue": ESB অনেক বেশি — full integration।
  3. "Microservice ESB এর সম্পূর্ণ replacement": Microservice ও ESB ভিন্ন context।

Best Practices

  • Greenfield project-এ ESB এড়ান — modern alternative।
  • Existing ESB থাকলে — gradual migrate।
  • HA configuration — single point of failure বানাবেন না।
  • Logic ESB-তে minimize — endpoint-এ রাখুন।
  • Monitoring crucial।
  • Open-source preferred (vendor lock-in এড়াতে)।

📌 চ্যাপ্টার সারমর্ম

  • ESB = enterprise integration platform — heterogeneous system যোগাযোগ।
  • Routing, transformation, orchestration central।
  • Microservice "smart endpoint, dumb pipe" — ESB-এর বিপরীত।
  • Modern alternative: API Gateway + Service Mesh + Kafka।
  • Legacy enterprise-এ এখনও relevant।