Skip to main content

Integration Runtime Model

Runtime Manager is where integrations are deployed, configured and operated. Project Manager holds their source; Runtime Manager decides what runs, where, and with which settings.

On its own, in an integration group, in an API group

What an integration is here​

An integration is the deployable unit: a set of Camel routes plus everything needed to run them: dependencies, properties, files, memory, replicas. It is not a file and not an image: the platform builds the image from it each time its source or dependencies change.

Two properties of this model explain most of what you will do in Runtime Manager:

  • Source and settings are separate. The routes say what the integration does; its settings say how it runs in a given environment. Changing a setting never rebuilds the image.
  • One integration, several environments. An integration is bound to each environment it must run in, and is built and deployed separately in each. Development and production can run different versions of the same integration with different settings.

Object Model​

Runtime Manager works with three objects.

ObjectWhat it isWhen you need it
IntegrationCamel routes that the platform builds and runsAlways
Integration groupIntegrations and storage deployed and versioned togetherWhen several integrations must always be released together
StorageA volume that keeps data across restartsWhen a route keeps files or state on disk
Start with an integration on its own

Create integrations with None — create it on its own. Group them only when deploying one without the others would break something.

Create and deploy an integration​

The environment must have its Camel Integration Service activated.

  1. Open Integrations, then Create Integration. Name it and choose None — create it on its own.

  2. Keep the source mode Inline and type a route:

    - route:
    from:
    uri: platform-http:/hello
    steps:
    - setBody:
    constant: "Hello from Camel X"
  3. Bind the integration to an environment.

  4. Apply changes. The environment builds an image from your route, then starts it.

  5. Follow the build and the instance on the page of the integration.

The first build takes a few minutes

Maven downloads the dependencies and the image is pushed to the registry of the environment. Later builds reuse what was downloaded; a change of settings alone does not build at all.

What "Apply changes" does​

Nothing you edit in Runtime Manager takes effect until it is applied. Apply changes sends the current definition of the integration to the selected environment, which works out what to do:

You changedThe environment
A route, a dependencyRebuilds the image, then rolls it out
A setting: properties, variables, memory, replicasRolls out the existing image with the new settings
NothingDoes nothing

Each apply that changes something creates a revision, which you can roll back to.

Why an integration needs a storage​

The file system of a container is temporary. Everything a route writes to it disappears with the instance. That is fine for most integrations, which keep their state in the systems they connect. It is not for those that keep state on disk:

  • a file-based idempotent repository, remembering what was already processed;
  • a staging directory where files wait between two steps;
  • a local cache that is expensive to rebuild.

For those, create a storage and mount it.

Next steps​

Once an integration is deployed, these pages take it further.

You want toRead
Understand what happens between apply and runningBuild and run lifecycle
Give it properties, variables and files3. Configuration
Call a service signed by a private authorityJVM truststore
Build from a repository7. Build from Git
Publish it as an API8. Expose as an API