Using the Saga Screen

At a glance

  • Left panel: list of sagas, grouped by domain and path.

  • Center canvas: drag-and-drop step graph.

  • Top bar: edit saga details, add steps, and tidy layout.

  • Save is “live”: changes propagate to runners in real time.

Open the Saga screen

Open Devops → Saga. You’ll land on a visual graph editor for building flows step by step.

The screen behaves like other Rierino screens. You get save, delete, duplicate, and import/export menus.

Pick the right saga (domain/path/stream)

Sagas are listed on the left, grouped by domain and path. The system can store multiple saga records for the same URL path.

chevron-rightHow multiple sagas on the same path are selectedhashtag
  • If only one saga is active, it is used.

  • If more than one saga is active, but each is allowed on different streams, the runner picks the one matching the incoming stream.

  • If more than one saga is active on the same stream, only the first record is used.

Use a meaningful saga ID

The saga ID field is editable. Use a meaningful unique ID for easier log searches.

Icon Bar

Icon bar: edit, build, layout

Left: edit saga details

Click the edit icon to open the saga definition popup. This is where you set path, allowed runners/streams, schema, caching, and more.

Middle: add steps

Drag step types onto the canvas. Then connect them with links to define the execution order.

Right: layout tools

Use alignment and grid controls to keep the flow readable. You can also change the grid size and visibility.

Each saga needs at least one Start step. Use Success and Fail steps as exit points. Add Event / Transform / Condition steps in between.

chevron-rightParallel starts (multiple Start steps)hashtag

If a saga has more than one Start step, they run in parallel threads. This is available starting from version 1.8.0.

Parallel branches do not auto-merge payloads. Use the Merge event handler if you need a combined payload.

Keep parallel branches in the same runner when possible. Prefer synchronous links if distributing across runners.

Save & deploy behavior (real-time)

Creating or updating a saga updates the runtime in real time. This depends on change data capture not being disabled.

chevron-rightHow saves affect in-flight requestshashtag
  • Requests already running on a different saga record (different ID) continue on the old flow. This is true even if you mark that other saga inactive.

  • Requests running on the currently active saga may pick up your new graph mid-flight. Big changes (like removing steps) can break these requests.

If you need zero disruption, use a versioned or backup saga briefly. Switch traffic once you’re confident no requests are in-flight.

circle-info

To copy multiple steps at once, keep pressing Ctrl while clicking Copy on a selected step. This builds a multi-step clipboard and works across sagas.

Saga Data Schema (reference)

Last updated