Protocol Mediation

Bridge legacy and modern systems without rewriting code.

Hexarch’s Protocol Mediation transforms requests between protocols at the gateway—REST to SOAP, MQTT to Kafka, JSON to XML—so your modern clients can talk to legacy backends, and vice versa.

How it works

  1. Inbound request arrives in one protocol (e.g., REST/JSON)
  2. Gateway transforms the request to the target protocol (e.g., SOAP/XML)
  3. Backend processes the transformed request
  4. Response transforms back to the original protocol
  5. Client receives a response in the format it expects

No code changes in the client. No code changes in the backend. The gateway handles translation.

Supported protocols

Inbound (client-facing)

Outbound (backend-facing)

Common mediation scenarios

REST-to-SOAP

Your modern frontend speaks REST. Your backend is a legacy SOAP service.

Without mediation:

With Hexarch:

MQTT-to-Kafka

IoT devices publish via MQTT. Your analytics pipeline consumes Kafka.

Without mediation:

With Hexarch:

GraphQL-to-REST

Internal systems expose REST APIs. External partners want GraphQL.

With Hexarch:

AI-assisted transformation

Hexarch uses AI to generate mediation logic:

  1. Describe the scenario: “Bridge our legacy SOAP inventory system to a modern REST client”
  2. AI generates: Transformation logic, field mappings, envelope handling
  3. You review: Inspect the generated code, adjust if needed
  4. Deploy: Apply as a gateway filter

The AI handles the boilerplate. You verify the logic.

Transformation artifacts

Mediation generates deployable artifacts:

Download, review, and deploy.

Field mapping

Mediation policies include explicit field mappings:

REST field         → SOAP field
─────────────────────────────────
user.id            → UserId
user.email         → EmailAddress
order.items[]      → OrderLines/OrderLine
order.total        → TotalAmount

Mappings handle:

Error handling

Mediation policies define how to handle transformation failures:

Fail Closed (default for critical systems)

Fail Open (for non-critical data)

Why this matters

Without Protocol Mediation:

With Hexarch:

Performance

Mediation adds latency—transformation isn’t free. Hexarch optimizations:

Typical overhead: 2-10ms depending on payload size and transformation complexity.

Next steps