How assimbly/runtime works
Project type and purpose
• This is a multi-module Java runtime project (“Assimbly runtime”) that provides:
• An Integration engine built on Apache Camel (modules: integration, integrationRest)
• A Message Broker engine built on Apache ActiveMQ (modules: broker, brokerRest)
• Shared utility code (module: commons)
• A “Data Integration Language” layer for configuration (module: dil)
• The “Rest” modules expose management and lifecycle APIs over HTTP; the core modules expose Java APIs.
High-level component breakdown
• Java-client tier
– Your own Java application (or Assimbly Gateway) invoking the Java API modules
• REST-client tier
– Any HTTP client (e.g. the Assimbly Gateway UI) calling the integrationRest and brokerRest endpoints
• Service tier
– integrationRest: REST controllers → FlowManagerRuntime, ValidationRuntime, etc.
– brokerRest: REST controllers → BrokerManagerRuntime, QueueManagerRuntime, etc.
– integration: Java API (Integration, CamelIntegration) → Apache Camel engine → routes/flows
– broker: Java API (Broker) → ActiveMQ engine (classic or Artemis) → message broker endpoints
– dil: DIL parser/transpiler → generates Camel route definitions from XML/JSON/YAML → used by integration
– commons: shared utilities (HTTP, assertions, generic helpers)
• Infrastructure & external systems
– Apache Camel (embedded)
– ActiveMQ broker (embedded or external)
– File system (for DIL files, kamelet YAMLs, configurations)
– Optional databases (JDBC, H2, Mongo etc. for persistence in REST modules or event stores)
– Certificate stores / keystores for TLS in REST and DIL validators
Interaction & data flow
• Java client “new CamelIntegration()” → calls into integration module → DIL loader (if configured) → builds CamelContext → starts Camel routes
• REST client → HTTP POST/GET → integrationRest controllers → invoke the Java API (IntegrationRuntime) under the covers → manage flows
• Java client “new Broker()” → broker module starts ActiveMQ engine → configure endpoints
• REST client → brokerRest controllers → invoke Broker API → create/delete queues, topics, health checks
• DIL module processes XML/JSON/YAML flow definitions → uses transpiler → outputs Camel DSL → handed to CamelIntegration
Architectural patterns & design principles
• Layered architecture:
– API layer (Java API vs REST API)
– Service/Runtime layer (integration, broker logic)
– Infrastructure layer (Camel, ActiveMQ, DB, file system)
• Plugin/extension: dil uses “blocks” and “kamelets” to extend available steps
• Separation of concerns:
– “dil” solely for config parsing, “integration” solely for runtime execution, “integrationRest” solely for HTTP exposure
• Modularization via Maven multi-module: each concern in its own artifact
Essential elements
• Clear labels: module names (integration, broker, integrationRest, brokerRest, dil, commons)
• Modules in logical layers: Client, API, Service, Infra, External
• Important frameworks under each module (e.g. Camel under integration, ActiveMQ under broker)