Skip to main content

Source and Release Model

Project Manager (Integration Center in the menu) is where the source of your integrations lives. Runtime Manager runs things; Project Manager keeps what they are built from: one Git repository per project, its history, its releases, and the contracts of your APIs and messages.

You need it as soon as an integration must be reviewed, versioned or deployed to more than one environment. An integration typed inline in the console has none of that: it has no history and cannot be promoted as a fixed version.

From a repository to a running integration

How source reaches an environment​

The diagram reads from left to right. You commit routes to a repository. An integration in Runtime Manager points at that repository, at a branch while you develop, at a release once the version is settled. Each time the integration is applied in an environment, that environment fetches the source, builds an image and runs it.

Two consequences follow, and they explain most of what the other pages describe:

  • Nothing is deployed by a commit. Committing only changes the repository. A deployment happens when someone applies the integration in an environment.
  • What is built depends on what the integration points at. A branch gives whatever the branch contains at that moment; a release always gives the same source.

Project types​

Every repository has a type, chosen when it is created. The type tells the platform what the repository contains and how it is used; it is stored as a topic on the repository.

TypeContent of the repositoryHow it is used
RoutesCamel routes in YAML, Java or XML DSLBuilt and run as an integration
KameletA Kamelet: a parameterized route templateApplied to an environment, then used in routes as kamelet:<name>
PipeA Pipe: a source Kamelet bound to a sinkDeployed in an environment
API specificationAn OpenAPI documentKept in the schema registry

If you write integrations, you want Routes. Choose Kamelet when several teams need the same connector logic and you want to publish it once; choose Pipe when a flow is only "read from this, write to that" with no logic in between.

Start with one repository per deployable integration

A repository is released as a whole. Routes that are deployed together belong together; routes that are released on different schedules are easier to manage in separate repositories.

Branches and releases​

The head of a branch follows its last commit, whereas a release is a tag, such as v1.2.0, fixed on one commit.

Build from a branch in development, where you want every commit to be testable at once. Build from a release everywhere else, so that what was tested is exactly what runs in production and can be rebuilt identically later. Releases explains the versioning rules the platform enforces.

What Project Manager does not do​

It does not deploy, configure or monitor. Properties, secrets, memory and replicas are settings of the integration in Runtime Manager, not files in the repository, which is what lets one release run with different settings in each environment.

Where to go next​

The usual next step is to create an integration from a template: its repository starts with routes that already run, error handling included, instead of an empty project. The templates the platform provides are listed in the Camel X template reference.

You want toRead
Create an integration from a templateCreate from a template
Choose a templateCamel X template reference
Create the repository of a projectCreate a repository
Understand what the repository page offersRepositories
Follow one project from an empty repository to productionRepository to release
Version an API or message contractSchema registry

Why deploy releases and not branches​

A branch changes with every commit. If production builds from a branch, two deployments a week apart can produce two different integrations without anyone deciding it, and a rollback cannot say precisely what it returns to. A release removes that uncertainty: 1.4.0 is the same source today and in a year.

Why contracts are kept apart from repositories​

A contract is shared by a producer and its consumers, which usually live in different repositories and are released at different times. Keeping it in the repository of one of them makes the others depend on that repository's history. In the registry, a contract has its own identity and its own versions: every party refers to orders/order-created, version 3, whatever the state of the code.