Belli
Demo

Sign in

Belli runs on its own address for every airline. Enter yours to continue.

.belli.ai

Not sure of your address? Ask us.

News

How Farhan wants new EDI messages to plug in

Farhan's proposal for the next version of our inbound EDI pipeline: every message type and version becomes a small plugin, so adding FFM/9 or a new source like SFTP doesn't mean touching the core.

In this article

Airlines, ground handlers and agents send us cargo messages all day: FFM manifests, FWB air waybills, FSU status updates, FHL house lists and FBL booking lists. Each type comes in versions, written after the slash on the first line, so FFM/8 is version 8 of the flight manifest. Our first inbound pipeline has served us well, but every new type or version means editing several places in shared code, and a new source such as SFTP or SITA needs its own custom work.

Farhan, one of our backend engineers, has proposed a different shape for the next version. It is a proposal, not something we have built yet.

One plugin per message type

In Farhan's design, each message type and its versions become a small plugin. A shared pipeline does everything the plugins have in common: it saves the original message, claims it, retries it and holds it when something is wrong. A registry reads the type and version from the first line and hands the message to the plugin registered for exactly that pair.

Adding a new version, a new type or a new source becomes one package and one line to register it. Nobody edits the core.

Never guess the version

If no plugin is registered for an exact type and version, say FFM/9 before anyone has written a parser for it, the message is held for a person to review. The pipeline never falls back to the nearest version it knows, because a manifest read with the wrong rules is worse than one that waits.

Try it yourself

Farhan built an interactive model of the design. Plug in a new version, a new message type or a new source below, then send a sample message and watch where it goes.

Published
18 November 2026
Reading time
3 min

Written by

  • Farhan Hasan

How the pieces fit

Gmail connector
SES connector
Edifly, SFTP or SITA connector
Shared pipeline: saves, claims, retries, holds
Registry: type and version
FWB plugin
FSU plugin
FHL plugin
FBL plugin
FFM plugin: versions 5, 6, 8
Held: unsupported type or version
Shared applicators: the business change

The first inbound pipeline (v1) reaches the same applicators.

Two plug points. Connectors plug in at the top. Plugins plug in at the registry. A dashed box is planned, not built. A message the registry can’t match exactly is held and kept, never guessed.

Try plugging one in

Click a dashed slot. Plug it in. Then send a message and see where it goes.

Registry, by type and wire version

FFM
FHL
FWB
FSU
FSA
Source

Inspector

You write

  • A parser for the FFM/9 format
  • A test that compares it with FFM/8
  • Nothing else, if the meaning is the same
registry.Register(ffmPlugin)
// Keys: FFM/9

The pipeline already does

  • Saves the original message and a receipt
  • Claims the message for one worker
  • Retries with a limit
  • Holds what cannot proceed, for a person
  • Tells the queue it is done
Sent to the FFM plugin (key FFM/8).The pipeline already saved the message and claimed it. The plugin reads it, checks the rules and applies the change.

Try FFM/9 for a new version, FSA/1 for a new type, and SFTP or SITA for a new source. The slots are examples.

Add your own

Three common jobs, and what each one takes. Saving, claiming, retrying and holding come from the shared pipeline, so none of them edits the core.

I want to addYou writeYou registerYou test
A new version, such as FFM/9A parser for the new format. Reuse the FFM rules and applicator if the meaning is the same.The key FFM/9 on the FFM pluginA test that compares the output with FFM/8
A new type, such as FSA/1A parser, the rules and an applicator.The plugin, with its keysTests for failures and for repeated messages
A new source, such as SFTP or SITATwo functions: Fetch and Acknowledge. Say if accepted IDs can be listed.The connector and the channel ownerA crash drill: stop it mid-message and check nothing is lost