As seen in the architecture overview, Jina is organized in different layers.

The Orchestration layer is composed of concepts that let you orchestrate, serve and scale your Executors with ease.

Two objects belong to this family:

  • A single Executor (Deployment), ideal for serving a single model or microservice.

  • A pipeline of Executors (Flow), ideal for more complex operations where Documents need to be processed in multiple ways.

Both Deployment and Flow share similar syntax and behavior. The main differences are:

  • Deployments orchestrate a single Executor, while Flows orchestrate multiple Executors connected into a pipeline.

  • Flows have a Gateway, while Deployments do not.