# Edge Integration Cell and hybrid integration: when to run integration on your own cluster

> Decide which flows justify running Integration Suite's runtime on your own Kubernetes cluster, what you must operate, and how to review an edge design.

- Course: Orchestrate, Unit 26 · Integration in depth
- Page: https://erpfde.com/topics/edge-integration-cell/
- Updated: 2026-11-30
- Reading time: Foundational 8 min, Deep 36 min

Independent learning resource. Not affiliated with, sponsored by or endorsed by SAP SE. SAP and other SAP products mentioned are trademarks of SAP SE in Germany and other countries.

## Foundational layer

### The 60-second version

SAP Integration Suite normally runs your integration flows in SAP's cloud. **Edge Integration Cell** is a second place to run them: on a Kubernetes cluster that you own, in your data center or in your own account at a cloud provider. You still design, deploy and monitor the flows in the same cloud cockpit. Only the part that moves the messages runs at home.

That is what **hybrid integration** means here: one design environment in the cloud, two kinds of runtime, and you pick a runtime per flow. Messages that pass through the edge are processed and stored on your side; the cloud sees status information, not the content.

The catch is that you now run a piece of SAP software. You provide the cluster, its databases, its backups, its network and its people. SAP ships the software and updates it often. If none of your flows needs to run on site, the cloud runtime is cheaper to own.

This topic uses Calder Pumpworks, the fictional pump maker used across this course. Calder's integration design (ADR-001 in [the integration platform topic](https://erpfde.com/topics/integration-platform-and-clean-core/)) left one option open: an Edge Integration Cell at its Rockford plant. The decision for a leader: **approve an edge runtime only for named flows with a stated reason, and only with a named team that will run the cluster.**

### Why it matters to the business

Four situations make a cloud-only integration platform a problem:

- **Data that must not leave the site.** A contract, a regulator or a customer says some payloads stay inside your network. A cloud runtime processes them in SAP's data center.
- **Both ends are at home.** Calder's shop-floor system (MES) at Rockford talks to its S/4HANA system `CP10`, which Calder reaches over a private network connection. Sending every confirmation out to the internet and back is a detour.
- **The plant must keep working when the internet line is down.** At Rockford, an internet outage stops every flow that runs in the cloud. Production confirmations pile up in the MES, so stock and costs in S/4HANA fall behind the floor.
- **Old middleware being retired.** Companies leaving SAP Process Orchestration (PI/PO) often have flows that must keep running locally.

The cost side is just as concrete. A production edge runtime needs at least about 20 processor cores, 64 GiB of memory and 204 GiB of storage for SAP's components alone, according to SAP Learning ([prerequisites](https://learning.sap.com/courses/introducing-edge-integration-cell/prerequisites-and-deployment-readiness_e2e9068c-4a6e-480f-8045-1b7c80206b61)). On top come a production database, a cache, backups, monitoring and staff who know Kubernetes. The risk is specific too: SAP's reference architecture warns that messages waiting in the edge's queues can be lost when a lost cluster is rebuilt ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/0a229d)). Somebody has to plan how those messages are sent again.

### How SAP does it

As of November 2026, these are the facts SAP's own pages state:

- **It is part of Integration Suite, not a product of its own.** SAP Learning calls it an optional hybrid runtime of the suite. Design always happens in the cloud cockpit, and user management stays in SAP BTP ([positioning](https://learning.sap.com/courses/introducing-edge-integration-cell/positioning-edge-integration-cell_bf3551d7-2c12-41ba-93fd-1038a6159863)).
- **It runs integration flows and API proxies.** The edge runs Cloud Integration flows, a local message queue, and API Management proxies with their policies ([scope](https://learning.sap.com/courses/introducing-edge-integration-cell/current-scope-limitations-and-roadmap_b888df5f-27db-4d82-9125-74099cabc2ee)).
- **It is not identical to the cloud runtime.** Some features are missing on the edge (the Partner Directory, number ranges, the Inspect debugger, archiving message logs) and a few adapters exist only on the edge (RFC sender, NFS, OFTP2). SAP Learning names SAP Note 3391207 as the up-to-date scope list.
- **Which editions include it.** SAP Learning says Standard, Enhanced, the consumption-based model (CPEA) and pay-as-you-go include it, Starter doesn't, and one edge node comes with a qualifying subscription; more need an add-on. SAP's March 2026 update says the Enhanced edition includes one node ([slides](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260331_sap_integration_suite_monthly_update.pdf)). The [pricing page](https://www.sap.com/products/technology-platform/integration-suite/pricing.html) lists an edge row per edition; confirm what your order form says.
- **Where it runs.** SAP Learning lists Azure Kubernetes Service, Amazon EKS, Google GKE, SUSE Rancher RKE2 and Red Hat OpenShift. Under RISE with SAP, an SAP product team's FAQ says you install it yourself; SAP doesn't host it inside RISE ([SAP Community FAQ](https://community.sap.com/t5/integration-blog-posts/frequently-asked-questions-faq-on-edge-integration-cell/ba-p/13571636)).
- **How long it runs without the cloud.** Up to four hours, according to SAP Learning, and it is "not designed" for permanent offline use. A roadmap item for 48 hours appears in SAP's March 2026 slides, marked subject to change.

### Edge or cloud: a decision guide

SAP Learning frames the choice as four questions. If none of them is "yes" for a flow, the flow belongs on the cloud runtime.

| Question | If yes | Calder example |
| --- | --- | --- |
| Must the payload stay inside our network? | Edge candidate | None today; the exercise adds one |
| Are both ends inside our network (ground to ground)? | Edge candidate | MES at Rockford to `CP10` |
| Must the flow keep running when the site's internet line is down? | Edge candidate, within the offline window | Production confirmations from the MES |
| Is it a PI/PO flow that must keep running locally? | Edge candidate | Calder runs no PI/PO |
| Does it need an adapter only the edge has? | Edge candidate | Test bench result files on a Rockford file share (NFS) |
| Does it need a feature the edge lacks? | Stays in the cloud, or the design changes | Distributor EDI needs B2B features and the Partner Directory |

And one question about the whole decision rather than a flow: **who runs the cluster?** If the answer is "the integration team, in its spare time", the answer to the edge is no.

> **Example** Calder's partner proposed moving all eight hub flows to an edge runtime "to keep data on site". The review in the deep layer keeps two on the edge (the MES flow and the test bench files), five in the cloud, and retires one: the intercompany link to the ECC system `CP20` disappears with the July 2027 rollout, so moving it now means moving it twice.

### Questions to ask

1. Which flows need to run on site, and what is the stated reason for each: residency, ground to ground, offline operation, a PI/PO flow, or an edge-only adapter?
2. Who owns the Kubernetes cluster, its database, cache and backups, and who is the Edge Node administrator in BTP?
3. Does our edition and order form include an edge node, and how many sites would need one?
4. How long are the site's longest planned and unplanned internet outages, and does that fit the offline window SAP states?
5. When a lost cluster is rebuilt, where does each queued message come from again?
6. How often does SAP ship updates, how far behind may we fall, and who tests them?
7. Which features our flows use are missing on the edge, according to SAP Note 3391207 today?

### Common misconceptions

- **"Edge means we can design and run integration without the cloud."** Design, deployment and user management stay in the cloud. The edge keeps running for a limited time without it, then waits.
- **"Data on the edge never reaches SAP's cloud."** Payloads stay on your side, but status information goes to the cloud. If someone switches on trace logging, message content can show up in logs visible from the cloud, as SAP Learning points out.
- **"High availability means we can't lose messages."** Three nodes protect against one node failing. They don't protect against losing the cluster. SAP's reference architecture says the two need separate plans.
- **"It's the same as the cloud runtime, just somewhere else."** Flows are largely compatible, not identical. Check each flow's features against SAP's scope list before you promise a move.
- **"It replaces the Cloud Connector."** The Cloud Connector lets cloud flows reach systems inside your network. The edge runs the flow itself inside your network. Many landscapes use both.

### Key terms

- **Edge Integration Cell:** an Integration Suite runtime that runs on a Kubernetes cluster you manage, while design and monitoring stay in the cloud.
- **Hybrid integration:** one design environment with flows deployed to cloud and edge runtimes, chosen per flow.
- **Kubernetes:** software that runs containers across a group of servers (a cluster) and restarts them when they fail.
- **Edge node:** a Kubernetes cluster registered in BTP so that SAP's lifecycle service can install and update the edge runtime on it.
- **Edge Lifecycle Management:** the BTP service that checks the cluster, installs the edge software and rolls out its updates.
- **Ground to ground:** a flow whose sender and receiver both sit inside the company's own network.
- **Offline window:** how long the edge keeps processing without its cloud connection; four hours per SAP Learning in November 2026.
- **Replay source:** the place a lost message can be sent again from, such as the sender's outbox.

### Check yourself

1. Calder's partner wants every integration flow on an Edge Integration Cell "to keep data on site". What should a leader ask first?
   - A. Which Kubernetes platform the partner prefers for the plant
   - B. Which flows have a stated reason to run on site, flow by flow
   - C. Whether the edge can also replace the integration cockpit
   - D. How many processor cores the cloud runtime currently uses

   Answer: B. The edge is chosen per flow, and SAP's guidance lists the reasons: residency, ground to ground, network constraints, PI/PO flows or an edge-only adapter. A flow with none of them is cheaper to own on the cloud runtime.

2. What stays in SAP's cloud when Calder runs flows on its own edge runtime?
   - A. Nothing, because the edge is a separate on-premise product
   - B. Only the message payloads, for archiving and audit
   - C. Design, deployment, user management and status information
   - D. The queues, so messages survive if the plant loses power

   Answer: C. Flows are designed and deployed from the cloud cockpit and users are managed in BTP. The edge processes and stores payloads locally and sends status information to the cloud.

3. Rockford's internet line fails for three hours. What happens to the MES flow if it runs on the edge?
   - A. It keeps running, within the offline window SAP states
   - B. It stops, because every flow needs the cloud to process
   - C. It keeps running indefinitely, since the edge is independent
   - D. It switches to the cloud runtime until the line returns

   Answer: A. SAP Learning says the edge keeps processing for up to four hours without its cloud connection. New deployments, credential rotation and cloud monitoring wait for the line.

4. The partner's design runs three nodes and calls it safe. Why does a design review still ask for a recovery plan?
   - A. Three nodes are below SAP's minimum for any production use
   - B. SAP restores the queues only for customers on the Enhanced edition
   - C. The cloud runtime keeps a copy of every queued message
   - D. Queued messages can be lost when a lost cluster is rebuilt

   Answer: D. SAP's reference architecture warns that its emergency recovery doesn't restore the message service's volumes, so stored queue messages can be lost. High availability covers a failed node, not a lost cluster, so each queue needs a source to send messages again.

5. Which question decides whether Calder should run an edge runtime at all?
   - A. Whether the plant's IT room has space for three more servers
   - B. Whether a named team will run the cluster, its database and backups
   - C. Whether the partner has built edge runtimes for other customers
   - D. Whether the edge can process more messages than the cloud

   Answer: B. The edge moves the runtime's operation to the customer: the cluster, the external database and cache, backups, network and updates. Without a named team to do that, the cloud runtime is the safer choice.

6. The intercompany link to ECC `CP20` passes all four edge questions only weakly and retires in July 2027. What should happen to it?
   - A. Move it to the edge first, then retire it from there
   - B. Rebuild it on the cloud runtime before the rollout
   - C. Leave it where it is until it retires with the rollout
   - D. Duplicate it on both runtimes during the migration

   Answer: C. A flow that disappears with the July 2027 rollout shouldn't be moved twice. Leaving it in place until it retires costs nothing extra and avoids a migration with no lasting value.

## Deep layer

### Mental model

**Edge Integration Cell moves the runtime, not the platform.** Integration Suite has a control side and a runtime side. The control side (the design workspace, deployment, user management, the monitor) always stays in SAP's cloud. The runtime side, where a flow actually receives, maps and sends a message, can run in SAP's cloud or on a Kubernetes cluster you own. Each flow is deployed to one runtime.

Everything else follows from that split:

- **Why choose the edge:** the message has a reason to stay or to keep moving locally (residency, both ends at home, the site's internet line, a PI/PO flow, an edge-only adapter).
- **What you take on:** everything under the runtime: cluster, nodes, storage, database, cache, network, backups and the people who run them.
- **What stays SAP's:** the software in the containers, its updates, and the cloud side.
- **Where the risk sits:** the seam. A broken cloud connection stops changes for a while; a lost cluster takes queued messages with it.

A useful test for any edge proposal is to strike out the runtime and ask, flow by flow, "what would actually break if this ran in the cloud?" If nothing would, the flow stays in the cloud.

### How it works

```mermaid
flowchart LR
  subgraph CLOUD[SAP BTP: Integration Suite]
    D[Design and deploy]
    M[Monitor]
    ELM[Edge Lifecycle Management]
    CR[Cloud runtime]
  end
  subgraph SITE[Calder Rockford: Kubernetes cluster]
    W[Worker: runs flows]
    P[Policy engine]
    Q[Message service: JMS queues]
    CC[Embedded Cloud Connector]
  end
  DB[(PostgreSQL)]
  RD[(Redis)]
  MES[MES Rockford]
  S4[S/4HANA CP10 via private network]
  CC -- outbound 443 --> ELM
  D -.deploys.-> W
  W -.status.-> M
  MES --> P --> W --> S4
  W --- Q
  W --- DB
  P --- RD
```

#### The pieces on your cluster

SAP Learning describes the edge's core components as a **worker** based on Apache Camel (the same framework as the cloud runtime) that runs flows, a **policy engine** based on Envoy that enforces authentication, authorization and rate limits on inbound calls, and a **message service** for the local queues ([Kubernetes concepts](https://learning.sap.com/courses/introducing-edge-integration-cell/exploring-kubernetes-concepts-in-eic_e06ac920-10cb-4fae-944b-3cc0420a7cad)). They live in their own namespaces (such as `edge-icell`) that Edge Lifecycle Management manages; changing them by hand risks conflicts.

Two services sit outside the cluster in production:

- **A database**, PostgreSQL or SAP HANA, for runtime configuration, the message store, deployment state and message processing logs.
- **A cache**, Redis (6.x or 7.x), Valkey (8.0 to 8.2) or SAP HANA, for session state and API policies such as quotas.

SAP Learning says TLS is required to both, and that databases inside the cluster are for test and development only. SAP HANA and Valkey were added in the first quarter of 2026 ([March 2026 slides](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260331_sap_integration_suite_monthly_update.pdf)).

The cluster also needs storage classes for both block (ReadWriteOnce, RWO) and shared (ReadWriteMany, RWX) volumes, and linux/amd64 nodes: SAP Learning says ARM nodes aren't supported.

#### The link to the cloud

The edge connects out; nothing connects in. SAP Learning says a Cloud Connector embedded in Edge Lifecycle Management keeps an outbound HTTPS tunnel on port 443, which carries deployment commands and answers the cloud monitor's queries. Since early 2026 you can use your own Cloud Connector instead, to put it in a separate network zone ([March 2026 slides](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260331_sap_integration_suite_monthly_update.pdf)). Your systems call the edge's endpoints inside your network, through a load balancer: automatic on the managed Kubernetes services, set up by you on premise.

What goes up the tunnel is metadata: deployment status and message processing log entries. SAP Learning says payloads are processed and stored locally, with one caveat: trace logging can put message content into logs the cloud can see.

#### Installing and updating

Edge Lifecycle Management (ELM) is the BTP service that does the installing. SAP Learning gives six steps: verify prerequisites, size the cluster (SAP Note 3705131 is the sizing tool), activate the edge runtime in Integration Suite's *Settings*, let ELM validate the cluster, register the cluster as an **edge node**, and let ELM deploy the components. The roles involved are the BTP role collections `Integration_Provisioner`, `EdgeLMAccess` and `PI_Integration_Developer`, plus whoever administers the cluster.

Updates come from SAP at cloud pace. An SAP product team's FAQ says updates ship about every four weeks, versions n and n-1 are supported, and an update can be delayed by four weeks ([SAP Community FAQ](https://community.sap.com/t5/integration-blog-posts/frequently-asked-questions-faq-on-edge-integration-cell/ba-p/13571636)). Kubernetes itself, the operating system, the database and the cache are yours to patch.

#### When the cloud connection drops

SAP Learning says the edge keeps processing for up to four hours without the cloud, using cached security material. During that time these wait: new deployments and updates, credential rotation, message logs in the cloud monitor and software updates. The window is meant for outages, not for running disconnected.

#### When the cluster is lost

High availability means several nodes and replicas, so one failed node doesn't stop the flows. Losing the whole cluster is different. SAP's reference architecture says its emergency recovery procedure doesn't recover the message service's persistent volumes, so stored queue messages and temporary log events can be lost, and that high availability doesn't replace disaster recovery ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/0a229d)). Every queue on the edge therefore needs a **replay source**: a place the message can be sent again from.

### Build it yourself: decide Calder's edge and review the runtime

You'll run a small script that holds Calder's candidate flows and two versions of its edge runtime design: the partner's draft and the reviewed design. It places each flow on the edge or in the cloud, reviews each design against fourteen rules, and simulates two bad days: Rockford's internet line going down, and the cluster being lost. No account is needed.

```mermaid
flowchart LR
  A[edge_decision.py --init] --> B[candidates.json<br/>eic_draft.json<br/>eic_reviewed.json]
  B --> C[placement per flow]
  B --> D[--design: 14 rules]
  B --> E[--outage / --rebuild]
```

**Before you start:** complete [Set up your computer for this course](https://erpfde.com/topics/set-up-your-computer/) and [Set up for Unit 26](https://erpfde.com/topics/set-up-for-unit-26/). This walkthrough doesn't repeat their steps. There is no free Edge Integration Cell to try: the pricing page shows no trial for it, and a real one needs a Kubernetes cluster and a licensed Integration Suite tenant. This lab reviews the decision and the design before any of that exists.

> **Note** New words. **JSON** is a text format for structured data, here the candidate list and the designs. A **rule** is a check the script runs, with a result of `OK`, `WARN` or `FAIL`. An **exit code** is a number a program returns when it finishes; `2` here means something failed, which a pipeline can use to stop a release. **RPO** (recovery point objective) is how much recent data you can afford to lose; **RTO** (recovery time objective) is how long recovery may take.

#### What you need

- Python 3.10 or newer and your `orchestrate-course` folder with its `.venv`, from the setup topics.
- No account, no key, no cost. Built-in modules only; nothing to add to `requirements.txt`.
- About 30 minutes.

#### Step 1: Open your course folder and turn on the virtual environment

Windows (PowerShell):

```powershell
cd $HOME\orchestrate-course
.\.venv\Scripts\Activate.ps1
```

macOS or Linux:

```bash
cd ~/orchestrate-course
source .venv/bin/activate
```

Your prompt now starts with `(.venv)`.

#### Step 2: Save the script

1. Make sure the folder `unit26` exists (the setup topic created it). If not, create it: `mkdir unit26`.
2. Create the file `unit26/edge_decision.py` in your editor and paste the code below. Save it.

```python
"""Decide which Calder flows need Edge Integration Cell, and review the runtime.

Course lab for the Unit 26 topic "Edge Integration Cell and hybrid
integration". Built-in modules only, no randomness. All names, numbers and
rules are course values for the fictional Calder Pumpworks, not SAP defaults.

  python unit26/edge_decision.py --init              write the three files
  python unit26/edge_decision.py                     place every candidate flow
  python unit26/edge_decision.py --design draft      review the partner's runtime design
  python unit26/edge_decision.py --design reviewed   review the reviewed design
  python unit26/edge_decision.py --outage 3          Rockford's internet line down 3 hours
  python unit26/edge_decision.py --rebuild           the cluster is lost and rebuilt
  python unit26/edge_decision.py --rebuild --design reviewed   one design only
"""
import argparse
import json
import sys
from pathlib import Path

FOLDER = Path("unit26/edge")

# Reasons for running a flow on the edge, after SAP Learning's decision guide.
EDGE_REASONS = {
    "residency": "payload must stay in a private network",
    "ground_to_ground": "both ends sit in Calder's private network",
    "network": "must keep running when the plant's internet line is down",
    "pipo": "PI/PO flow that must keep local execution",
    "edge_adapter": "needs an adapter only the edge offers",
}
# Adapters SAP Learning lists as available only on Edge Integration Cell.
EDGE_ONLY_ADAPTERS = {"RFC sender", "NFS", "OFTP2"}
# Features SAP Learning lists as missing or restricted on the edge.
EDGE_GAPS = {
    "partner_directory": "Partner Directory is not available",
    "number_ranges": "number range artifacts are not supported",
    "inspect": "the Inspect environment is not available",
    "mpl_archiving": "archiving message logs to external storage is not supported",
    "b2b_tpm": "not all B2B scenario types are supported",
}
PLATFORMS = {"AKS", "EKS", "GKE", "RKE2", "OpenShift"}  # SAP Learning, 2026
HA_MIN = {"cores": 20, "memory_gib": 64, "storage_gib": 204}  # SAP Learning minimum totals
CACHES = {"Redis": ("6", "7"), "Valkey": ("8.0", "8.1", "8.2"), "SAP HANA": ("2.0",)}
DATABASES = {"PostgreSQL", "SAP HANA"}
OFFLINE_HOURS = 4  # SAP Learning: up to 4 hours without the cloud connection


def candidates():
    """Calder's flows on the integration hub (ADR-001) plus the bench files."""
    return [
        {"id": "I02", "name": "MES Rockford: released orders out, confirmations back",
         "site": "Rockford", "reasons": ["ground_to_ground", "network"],
         "adapters": ["OData", "HTTP"], "needs": [], "per_hour": 90,
         "proposed": "EDGE"},
        {"id": "I06", "name": "Carriers: freight orders, tenders, invoices",
         "site": "cloud", "reasons": [], "adapters": ["AS2", "HTTP"],
         "needs": ["b2b_tpm"], "per_hour": 4, "proposed": "EDGE"},
        {"id": "I09", "name": "Agent on BTP: exception events, read APIs",
         "site": "cloud", "reasons": [], "adapters": ["HTTP"], "needs": [],
         "per_hour": 20, "proposed": "EDGE"},
        {"id": "I10", "name": "Distributors: purchase orders by EDI",
         "site": "cloud", "reasons": [], "adapters": ["AS2", "IDoc"],
         "needs": ["b2b_tpm", "partner_directory"], "per_hour": 6,
         "proposed": "EDGE"},
        {"id": "I11", "name": "ECC CP20: intercompany orders and invoices",
         "site": "Augsburg", "reasons": ["ground_to_ground"], "adapters": ["IDoc"],
         "needs": [], "per_hour": 3, "retires": "2027-07-05", "proposed": "EDGE"},
        {"id": "I12", "name": "CRM: availability check while quoting (2 s)",
         "site": "cloud", "reasons": [], "adapters": ["OData"], "needs": [],
         "per_hour": 30, "proposed": "EDGE"},
        {"id": "I13", "name": "Cost centers to SuccessFactors Employee Central",
         "site": "cloud", "reasons": [], "adapters": ["OData"], "needs": [],
         "per_hour": 1, "proposed": "EDGE"},
        {"id": "I14", "name": "Test bench result files from the Rockford share",
         "site": "Rockford", "reasons": ["ground_to_ground", "edge_adapter"],
         "adapters": ["NFS", "OData"], "needs": [], "per_hour": 6,
         "proposed": "EDGE"},
    ]


def reviewed():
    return {
        "name": "eic-rockford-prod", "site": "Rockford", "stage": "production",
        "platform": "RKE2", "nodes": [
            {"name": "rkeic01", "arch": "amd64", "cores": 8, "memory_gib": 32, "storage_gib": 100},
            {"name": "rkeic02", "arch": "amd64", "cores": 8, "memory_gib": 32, "storage_gib": 100},
            {"name": "rkeic03", "arch": "amd64", "cores": 8, "memory_gib": 32, "storage_gib": 100}],
        "ha": True,
        "database": {"product": "PostgreSQL", "external": True, "tls": True},
        "cache": {"product": "Redis", "version": "7", "external": True, "tls": True},
        "storage_modes": ["RWO", "RWX"],
        "network": {"outbound_443": True, "inbound_from_internet": False,
                    "proxy": "proxy.rk.calder.internal:3128"},
        "cluster": {"dedicated": True, "existing_istio": False},
        "version_lag": 0,
        "backup": {"database": True, "cache": True, "rpo_minutes": 15,
                   "rto_hours": 4, "restore_tested": "2026-11-20"},
        "jms_queues": [
            {"queue": "I02_CONF", "flow": "I02", "replay_source": "MES outbox (keeps 7 days)"},
            {"queue": "I14_RESULTS", "flow": "I14", "replay_source": "bench share (files kept 30 days)"}],
        "trace_in_production": False,
        "owners": {"cluster": "00100327", "edge_node": "00100316"},
        "longest_planned_outage_hours": 4,
    }


def draft():
    d = reviewed()
    d.update({
        "platform": "k3s",
        "nodes": [
            {"name": "rkpc-01", "arch": "amd64", "cores": 8, "memory_gib": 32, "storage_gib": 100},
            {"name": "rkpc-02", "arch": "arm64", "cores": 8, "memory_gib": 32, "storage_gib": 100}],
        "database": {"product": "PostgreSQL", "external": False, "tls": False},
        "cache": {"product": "Redis", "version": "7", "external": False, "tls": False},
        "storage_modes": ["RWO"],
        "network": {"outbound_443": True, "inbound_from_internet": True, "proxy": ""},
        "cluster": {"dedicated": False, "existing_istio": True, "restricted_install": False},
        "version_lag": 2,
        "backup": {"database": False, "cache": False, "rpo_minutes": None,
                   "rto_hours": None, "restore_tested": None},
        "jms_queues": [
            {"queue": "I02_CONF", "flow": "I02", "replay_source": ""},
            {"queue": "I14_RESULTS", "flow": "I14", "replay_source": ""}],
        "trace_in_production": True,
        "owners": {"cluster": "", "edge_node": "00100316"},
        "longest_planned_outage_hours": 8,
    })
    return d


def write_files():
    FOLDER.mkdir(parents=True, exist_ok=True)
    for name, data in (("candidates.json", candidates()),
                       ("eic_draft.json", draft()),
                       ("eic_reviewed.json", reviewed())):
        (FOLDER / name).write_text(json.dumps(data, indent=2) + "\n", encoding="utf-8")
        print(f"wrote {FOLDER / name}")


def load(name):
    path = FOLDER / name
    if not path.exists():
        sys.exit(f"{path} not found: run  python unit26/edge_decision.py --init")
    return json.loads(path.read_text(encoding="utf-8"))


def place(c):
    """Return (verdict, why) for one candidate flow."""
    if c.get("retires"):
        return "RETIRE", f"retires {c['retires']}; don't move it twice"
    reasons = [r for r in c["reasons"] if r in EDGE_REASONS]
    edge_adapters = sorted(set(c["adapters"]) & EDGE_ONLY_ADAPTERS)
    if edge_adapters and "edge_adapter" not in reasons:
        reasons.append("edge_adapter")
    if not reasons:
        return "CLOUD", "no edge reason: the cloud runtime is SAP's to run"
    gaps = [EDGE_GAPS[n] for n in c["needs"] if n in EDGE_GAPS]
    if gaps:
        return "BLOCKED", "edge wanted, but " + "; ".join(gaps)
    return "EDGE", "; ".join(EDGE_REASONS[r] for r in reasons)


def placements():
    rows = load("candidates.json")
    counts, changed, sites = {}, 0, set()
    print(f"{'ID':4} {'VERDICT':8} {'PROPOSED':8}  WHY")
    for c in rows:
        verdict, why = place(c)
        counts[verdict] = counts.get(verdict, 0) + 1
        changed += verdict != c["proposed"]
        if verdict == "EDGE":
            sites.add(c["site"])
        print(f"{c['id']:4} {verdict:8} {c['proposed']:8}  {why}")
    summary = ", ".join(f"{n} {v}" for v, n in sorted(counts.items()))
    print(f"\n{len(rows)} flows: {summary}. {changed} of {len(rows)} differ from the proposal.")
    print("Edge sites needed: " + (", ".join(sorted(sites)) or "none"))
    if len(sites) > 1:
        print("WARN  more than one site: each site is its own cluster and edge node; "
              "check how many nodes your edition includes")
    return 2 if counts.get("BLOCKED") else 0


def review(d):
    out = []

    def rule(code, ok, text, warn=False):
        out.append((code, "OK" if ok else ("WARN" if warn else "FAIL"), text))

    rule("E01", d["platform"] in PLATFORMS,
         f"platform {d['platform']} (SAP lists {', '.join(sorted(PLATFORMS))})")
    arm = [n["name"] for n in d["nodes"] if n["arch"] != "amd64"]
    rule("E02", not arm, "all nodes amd64" if not arm else f"not amd64: {', '.join(arm)}")
    tot = {k: sum(n[k] for n in d["nodes"]) for k in HA_MIN}
    big = all(tot[k] >= HA_MIN[k] for k in HA_MIN) and len(d["nodes"]) >= 3
    rule("E03", big or d["stage"] != "production",
         f"{len(d['nodes'])} nodes, {tot['cores']} cores, {tot['memory_gib']} GiB, "
         f"{tot['storage_gib']} GiB storage (HA minimum 20/64/204, 3 nodes)")
    db, ca = d["database"], d["cache"]
    ext = (db["external"] and db["product"] in DATABASES and ca["external"]
           and ca["version"] in CACHES.get(ca["product"], ()))
    rule("E04", ext, f"database {db['product']} external={db['external']}, "
         f"cache {ca['product']} {ca['version']} external={ca['external']}")
    rule("E05", db["tls"] and ca["tls"], "TLS to database and cache")
    rule("E06", {"RWO", "RWX"} <= set(d["storage_modes"]),
         "storage classes " + "+".join(d["storage_modes"]) + " (needs RWO and RWX)")
    net = d["network"]
    rule("E07", net["outbound_443"] and not net["inbound_from_internet"] and net["proxy"],
         "outbound 443 through the proxy, nothing inbound from the internet")
    cl = d["cluster"]
    rule("E08", cl["dedicated"] or (not cl["existing_istio"] or cl.get("restricted_install")),
         "dedicated cluster, or restricted installation where Istio already runs")
    rule("E09", d["version_lag"] <= 1, f"{d['version_lag']} versions behind (keep n or n-1)")
    b = d["backup"]
    rule("E10", b["database"] and b["cache"] and b["rpo_minutes"] and b["rto_hours"]
         and b["restore_tested"], "backup of database and cache, RPO and RTO named, restore tested")
    bare = [q["queue"] for q in d["jms_queues"] if not q["replay_source"]]
    rule("E11", not bare, "every JMS queue has a replay source" if not bare
         else "no replay source: " + ", ".join(bare))
    rule("E12", not d["trace_in_production"], "trace logging off in production")
    own = [k for k, v in d["owners"].items() if not v]
    rule("E13", not own, "owners named" if not own else "no owner: " + ", ".join(own),
         warn=True)
    hrs = d["longest_planned_outage_hours"]
    rule("E14", hrs <= OFFLINE_HOURS,
         f"plant's longest planned outage {hrs} h against the {OFFLINE_HOURS} h offline window",
         warn=True)
    return out


def show_review(which):
    d = load(f"eic_{which}.json")
    print(f"Runtime design: {d['name']} ({which})")
    rows = review(d)
    for code, res, text in rows:
        print(f"{code}  {res:4}  {text}")
    n = {r: sum(1 for _, x, _ in rows if x == r) for r in ("OK", "WARN", "FAIL")}
    print(f"\n{len(rows)} checks: {n['OK']} OK, {n['WARN']} WARN, {n['FAIL']} FAIL")
    return 2 if n["FAIL"] else 0


def outage(hours):
    rows = load("candidates.json")
    print(f"Rockford's internet line is down for {hours} h. S4P stays reachable over the "
          f"private network connection.\n")
    print(f"{'ID':4} {'WITHOUT EDGE (option B)':32} WITH EDGE (option D)")
    for c in rows:
        if c["site"] != "Rockford":
            continue
        waiting = c["per_hour"] * hours
        if hours <= OFFLINE_HOURS:
            edge = "keeps running"
        else:
            edge = f"AT RISK after {OFFLINE_HOURS} h (beyond the offline window)"
        print(f"{c['id']:4} {'stops, ' + str(waiting) + ' messages wait':32} {edge}")
    print("\nWaits for the line either way: new deployments and updates, credential "
          "rotation,\nmessage logs in the cloud monitor, software updates.")


def rebuild(which):
    d = load(f"eic_{which}.json")
    # Course values: what sat in each queue when the cluster was lost.
    in_queue = {"I02_CONF": 40, "I14_RESULTS": 12}
    print(f"Cluster of {d['name']} ({which}) lost and rebuilt. Persistent volumes of the "
          f"message service are not recovered.\n")
    lost = 0
    for q in d["jms_queues"]:
        n = in_queue.get(q["queue"], 0)
        if q["replay_source"]:
            print(f"{q['queue']:12} {n:3} messages lost, replayed from {q['replay_source']}")
        else:
            lost += n
            print(f"{q['queue']:12} {n:3} messages lost, no replay source: LOST")
    print(f"\nMessages lost for good: {lost}")
    return 2 if lost else 0


def main():
    p = argparse.ArgumentParser(description=__doc__.splitlines()[0])
    p.add_argument("--init", action="store_true", help="write the three files")
    p.add_argument("--design", choices=["draft", "reviewed"], help="review a runtime design")
    p.add_argument("--outage", type=float, metavar="HOURS", help="simulate an internet outage")
    p.add_argument("--rebuild", action="store_true", help="simulate a lost cluster")
    args = p.parse_args()
    if args.init:
        write_files()
        return 0
    if args.rebuild:
        codes = []
        for which in [args.design] if args.design else ["draft", "reviewed"]:
            codes.append(rebuild(which))
            print()
        return max(codes)
    if args.design:
        return show_review(args.design)
    if args.outage is not None:
        outage(int(args.outage) if args.outage.is_integer() else args.outage)
        return 0
    return placements()


if __name__ == "__main__":
    sys.exit(main())
```

#### Step 3: Write the three files

```bash
python unit26/edge_decision.py --init
```

```text
wrote unit26/edge/candidates.json
wrote unit26/edge/eic_draft.json
wrote unit26/edge/eic_reviewed.json
```

Open `unit26/edge/candidates.json` and read one entry. Each flow carries its verified `reasons` for the edge, its `adapters`, the edge-missing features it `needs`, a rate per hour and the partner's `proposed` runtime. On macOS or Linux, `python3` works where `python` doesn't.

#### Step 4: Place every flow

```bash
python unit26/edge_decision.py
```

```text
ID   VERDICT  PROPOSED  WHY
I02  EDGE     EDGE      both ends sit in Calder's private network; must keep running when the plant's internet line is down
I06  CLOUD    EDGE      no edge reason: the cloud runtime is SAP's to run
I09  CLOUD    EDGE      no edge reason: the cloud runtime is SAP's to run
I10  CLOUD    EDGE      no edge reason: the cloud runtime is SAP's to run
I11  RETIRE   EDGE      retires 2027-07-05; don't move it twice
I12  CLOUD    EDGE      no edge reason: the cloud runtime is SAP's to run
I13  CLOUD    EDGE      no edge reason: the cloud runtime is SAP's to run
I14  EDGE     EDGE      both ends sit in Calder's private network; needs an adapter only the edge offers

8 flows: 5 CLOUD, 2 EDGE, 1 RETIRE. 6 of 8 differ from the proposal.
Edge sites needed: Rockford
```

Two flows earn the edge. `I02` connects the Rockford MES to `CP10` over Calder's private network and must keep running when the plant's internet line fails. `I14` reads test bench result files from a Rockford file share, which needs the NFS adapter that SAP Learning lists as edge-only. The distributor and carrier flows (`I06`, `I10`) have no reason to be on site, and they also use B2B features that SAP lists as restricted on the edge. A `BLOCKED` verdict would mean a flow wants the edge but needs a missing feature; the exercise produces one.

#### Step 5: Review the partner's runtime design

```bash
python unit26/edge_decision.py --design draft
```

```text
Runtime design: eic-rockford-prod (draft)
E01  FAIL  platform k3s (SAP lists AKS, EKS, GKE, OpenShift, RKE2)
E02  FAIL  not amd64: rkpc-02
E03  FAIL  2 nodes, 16 cores, 64 GiB, 200 GiB storage (HA minimum 20/64/204, 3 nodes)
E04  FAIL  database PostgreSQL external=False, cache Redis 7 external=False
E05  FAIL  TLS to database and cache
E06  FAIL  storage classes RWO (needs RWO and RWX)
E07  FAIL  outbound 443 through the proxy, nothing inbound from the internet
E08  FAIL  dedicated cluster, or restricted installation where Istio already runs
E09  FAIL  2 versions behind (keep n or n-1)
E10  FAIL  backup of database and cache, RPO and RTO named, restore tested
E11  FAIL  no replay source: I02_CONF, I14_RESULTS
E12  FAIL  trace logging off in production
E13  WARN  no owner: cluster
E14  WARN  plant's longest planned outage 8 h against the 4 h offline window

14 checks: 0 OK, 2 WARN, 12 FAIL
```

The draft runs a lightweight Kubernetes on two plant PCs, one of them ARM, with the built-in database, an opened inbound port "so SAP can call in", trace logging on to debug, and no backup. Each line names the rule it broke; the text of a `FAIL` line says what the rule expects.

#### Step 6: Review the reviewed design

```bash
python unit26/edge_decision.py --design reviewed
```

```text
Runtime design: eic-rockford-prod (reviewed)
E01  OK    platform RKE2 (SAP lists AKS, EKS, GKE, OpenShift, RKE2)
E02  OK    all nodes amd64
E03  OK    3 nodes, 24 cores, 96 GiB, 300 GiB storage (HA minimum 20/64/204, 3 nodes)
E04  OK    database PostgreSQL external=True, cache Redis 7 external=True
E05  OK    TLS to database and cache
E06  OK    storage classes RWO+RWX (needs RWO and RWX)
E07  OK    outbound 443 through the proxy, nothing inbound from the internet
E08  OK    dedicated cluster, or restricted installation where Istio already runs
E09  OK    0 versions behind (keep n or n-1)
E10  OK    backup of database and cache, RPO and RTO named, restore tested
E11  OK    every JMS queue has a replay source
E12  OK    trace logging off in production
E13  OK    owners named
E14  OK    plant's longest planned outage 4 h against the 4 h offline window

14 checks: 14 OK, 0 WARN, 0 FAIL
```

The reviewed design runs RKE2 on three virtual machines in Rockford's server room, with an external PostgreSQL and Redis, a tested restore, and named owners: Rockford's IT infrastructure lead `00100327` for the cluster and BTP platform administrator `00100316` as Edge Node administrator. These are fictional course values.

#### Step 7: Simulate the internet line going down

```bash
python unit26/edge_decision.py --outage 3
```

```text
Rockford's internet line is down for 3 h. S4P stays reachable over the private network connection.

ID   WITHOUT EDGE (option B)          WITH EDGE (option D)
I02  stops, 270 messages wait         keeps running
I14  stops, 18 messages wait          keeps running

Waits for the line either way: new deployments and updates, credential rotation,
message logs in the cloud monitor, software updates.
```

Run it again with `--outage 6`. Both edge flows now show `AT RISK after 4 h (beyond the offline window)`: SAP documents four hours, so the script treats anything longer as unsupported rather than guessing what happens.

> **Note** The message counts come from made-up course rates (90 MES messages and 6 bench files an hour) and show the method, not figures from a real plant.

#### Step 8: Simulate a lost cluster

```bash
python unit26/edge_decision.py --rebuild
```

```text
Cluster of eic-rockford-prod (draft) lost and rebuilt. Persistent volumes of the message service are not recovered.

I02_CONF      40 messages lost, no replay source: LOST
I14_RESULTS   12 messages lost, no replay source: LOST

Messages lost for good: 52

Cluster of eic-rockford-prod (reviewed) lost and rebuilt. Persistent volumes of the message service are not recovered.

I02_CONF      40 messages lost, replayed from MES outbox (keeps 7 days)
I14_RESULTS   12 messages lost, replayed from bench share (files kept 30 days)

Messages lost for good: 0
```

The exit code is `2` because the draft loses messages. Add `--design reviewed` to run one design only; it exits `0`. The queue contents (40 and 12) are synthetic course values.

#### Step 9: Save your work in Git

```bash
git add unit26/edge_decision.py unit26/edge
git commit -m "Unit 26: edge placement and runtime review"
```

#### How the code works

| Part | What it does |
| --- | --- |
| `EDGE_REASONS`, `EDGE_ONLY_ADAPTERS`, `EDGE_GAPS` | The reasons, edge-only adapters and missing features from SAP Learning's scope and decision pages |
| `PLATFORMS`, `HA_MIN`, `CACHES`, `DATABASES`, `OFFLINE_HOURS` | The platforms, minimum production totals, supported stores and the offline window SAP Learning states |
| `candidates()` | Calder's hub flows from ADR-001 plus the test bench files, with reasons and needs |
| `reviewed()` and `draft()` | The two runtime designs; the draft is the reviewed one with the partner's choices put back |
| `place()` | Gives each flow `RETIRE`, `CLOUD`, `BLOCKED` or `EDGE` |
| `review()` | Runs rules `E01` to `E14` on one design |
| `outage()` and `rebuild()` | Replay the two bad days with course rates and queue contents |
| `main()` | Reads the options and returns exit code 2 when something fails |

The rules in short: `E01` a platform SAP lists; `E02` amd64 nodes; `E03` at least SAP Learning's production totals on three nodes; `E04` external database and a supported cache; `E05` TLS to both; `E06` RWO and RWX storage; `E07` outbound only, through the proxy; `E08` a dedicated cluster or the restricted installation; `E09` no more than one version behind; `E10` backups with RPO, RTO and a tested restore; `E11` a replay source for every queue; `E12` no trace logging in production; `E13` named owners; `E14` the site's longest planned outage within the offline window. `E01` to `E08` and `E14` follow SAP Learning; `E09` follows the SAP FAQ; `E10` and `E11` follow the Architecture Center's recovery warning; the three-node minimum in `E03` and the rules `E12` and `E13` are course rules.

#### If something goes wrong

| What you see | What it means | What to do |
| --- | --- | --- |
| `python` is not recognized, or `command not found` | Python isn't installed or isn't on the path | Follow [Set up your computer](https://erpfde.com/topics/set-up-your-computer/); on macOS or Linux try `python3` |
| `unit26/edge/candidates.json not found` | You skipped Step 3 or ran from another folder | Run from `orchestrate-course`: `python unit26/edge_decision.py --init` |
| `json.decoder.JSONDecodeError` | A file was edited and has a missing comma or quote | Fix the line the error names, or run `--init` again to start over |
| `KeyError: 'per_hour'` | A flow you added misses a field | Copy an existing entry and change its values |
| Counts differ from the text | The files were edited | Run `--init` to restore all three files |
| `ModuleNotFoundError` | You copied an import that isn't in the script | The script needs built-in modules only; paste it again |

No network or key is involved, so proxy and key problems can't occur here.

### The SAP way

#### Licensing and editions

As of November 2026, SAP Learning says the edge runtime comes with the Standard and Enhanced editions, the consumption-based CPEA model and pay-as-you-go, not with Starter; one edge node is included with a qualifying subscription, and further nodes need an add-on entitlement ([prerequisites](https://learning.sap.com/courses/introducing-edge-integration-cell/prerequisites-and-deployment-readiness_e2e9068c-4a6e-480f-8045-1b7c80206b61)). The same page says messages on the edge are billed at half the standard Integration Suite message rate. SAP's [pricing page](https://www.sap.com/products/technology-platform/integration-suite/pricing.html) lists an edge row against its three editions; read your own order form, because the inclusion and the metering decide whether a second site is affordable. In BTP, the subaccount needs the `edge_integration_cell` service plan and an Edge Lifecycle Management entitlement; without them, the runtime tab doesn't show in *Settings*.

#### Platforms and accelerators

SAP Learning lists AKS, EKS, GKE, RKE2 and OpenShift, and points to SAP Note 3247839 for the supported versions. SAP's Architecture Center has reference architectures for AWS, Azure and Google Cloud. The AWS one spreads the runtime across three availability zones, runs it on EKS in private subnets, and uses Amazon RDS for PostgreSQL with Multi-AZ, ElastiCache for Redis, EBS for block storage and EFS for shared storage; it calls itself a starting point for a small production deployment ([SAP Architecture Center, AWS](https://architecture.learning.sap.com/docs/ref-arch/cd0961)). Microsoft recommends AKS with Azure Database for PostgreSQL and Azure Cache for Redis for production, Azure Arc for clusters on premise, and offers a Terraform accelerator ([Microsoft Learn](https://learn.microsoft.com/en-us/azure/sap/workloads/sap-edge-integration-cell-with-azure)).

Since early 2026, SAP lets the runtime share an OpenShift or RKE2 cluster with other applications using fewer privileges, if the cluster is prepared as an SAP Note describes ([March 2026 slides](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260331_sap_integration_suite_monthly_update.pdf)). Where Istio already runs in the cluster, SAP Learning points to the restricted installation in SAP Note 3618713. SAP's FAQ still strongly recommends a dedicated cluster.

#### Scope

What runs on the edge, per SAP Learning in November 2026: flows with routing, mapping, scripts, local data stores and variables; a local JMS message service; keystores and credentials (up to 500 per runtime); API Management proxies with their policies (covered in [API Management in depth](https://erpfde.com/topics/api-management-in-depth/)). Adapters include HTTP, SOAP, OData, SFTP, FTP, mail, IDoc, JDBC (receiver) and ProcessDirect; RFC sender, NFS and OFTP2 run only on the edge. Missing or restricted: the Partner Directory, number ranges, the Inspect environment, archiving message logs to external storage, some OAuth flows that need a cloud callback, and some B2B scenario types ([scope](https://learning.sap.com/courses/introducing-edge-integration-cell/current-scope-limitations-and-roadmap_b888df5f-27db-4d82-9125-74099cabc2ee)). SAP Learning says SAP Note 3391207 is the authoritative list and changes each release. Check it on the day you decide.

#### Monitoring

Message processing logs show in the same Integration Suite monitor as cloud flows. SAP's March 2026 update added pushing them from the edge to SAP Focused Run or SAP Cloud ALM, with alerts on log status. Infrastructure monitoring (nodes, disk, database) is yours, with your own tools.

### Build vs. SAP

The "build" alternative here is running integration on site without SAP's edge runtime.

| Need | Edge Integration Cell | Cloud runtime plus Cloud Connector | Your own local middleware |
| --- | --- | --- | --- |
| Design and monitoring | Same cloud cockpit as all other flows | Same cockpit | A second tool and skill set |
| Payload stays on site | Yes, status goes to the cloud | No, the cloud processes it | Yes |
| Runs when the internet line is down | Up to the offline window | No | Yes |
| Edge-only adapters (RFC sender, NFS, OFTP2) | Yes | No | Depends on the product |
| Who runs the runtime | You run the cluster, SAP ships the software | SAP | You run everything |
| Update pace | SAP's, roughly monthly per the FAQ | SAP's, invisible to you | Yours |
| Cost to add a site | A node and its cluster | None | A server and a licence |

For Calder, the middle column is the default and the left column is the exception for two Rockford flows. The right column is what Calder would be building if it kept its old point-to-point programs alive, which ADR-001 already rejected.

### Architecture view

**Where it sits.** The diagram in How it works shows the split: Integration Suite's control side in BTP, a Kubernetes cluster in Rockford's server room running the edge runtime, PostgreSQL and Redis beside it, the MES and the test bench share on the plant network, and `CP10` reached over the private network connection to RISE with SAP. Every other hub flow stays on the cloud runtime.

**Non-functional requirements.**

| Requirement | Calder's target | What breaks if missed |
| --- | --- | --- |
| Availability | Survives one node failing; three nodes | Confirmations stop when one machine reboots |
| Offline operation | Site's longest planned outage within 4 h | Flows stop at the end of the window, with no warning designed in |
| Recovery | RPO 15 min, RTO 4 h for database and cache; replay for every queue | Lost confirmations: stock and costs wrong in S/4HANA |
| Security | Outbound only; TLS to stores; no trace in production | An exposed port, or payloads in cloud-visible logs |
| Currency | No more than one version behind | Running an unsupported version |
| Cost | One node, inside the edition (course assumption) | A second site turns into an add-on nobody budgeted |

**Integration and identity.** The MES calls the edge's endpoint inside the plant network; the policy engine authenticates it. The edge calls `CP10`'s released production order and confirmation APIs with a technical user. The edge's link to BTP is the outbound tunnel. People sign in to the cockpit through BTP as before, so no user management moves to the plant.

**The decision to record (ADR-001 amendment).**

- *Context:* ADR-001 left option D, an edge runtime at Rockford, open. Two flows have stated reasons: `I02` (ground to ground, must run through the plant's internet outages) and `I14` (edge-only NFS adapter).
- *Options:* (a) everything on the cloud runtime, the bench files moved by a script to SFTP; (b) an edge runtime at Rockford for `I02` and `I14` only; (c) the partner's proposal, all hub flows on the edge.
- *Decision:* (b), run by Rockford's IT infrastructure team, with a replay source for every queue.
- *Consequences:* Calder runs a Kubernetes cluster for the first time and must staff it; flows stay largely portable, so (a) remains the exit if the team can't sustain it; the decision is reviewed if a second site wants an edge node.

**What a design review will ask.**

1. Which flows run on the edge, and what breaks for each if it ran in the cloud?
2. Who owns the cluster, the database and the backups, and when was a restore last tested?
3. Where does every queued message come from again after a lost cluster?
4. How does the site's longest outage compare with the offline window, and what happens after it?
5. Does every flow on the edge use only features in SAP Note 3391207's current scope?

### Production concerns

- **Security.** Keep the cluster outbound-only and behind the plant's proxy. Use TLS to the database and cache. Keep trace logging off in production, because it can carry payloads into logs the cloud can see. Treat the cluster's secrets namespace as production secrets.
- **Authorizations.** The BTP role collections stay in BTP: `Integration_Provisioner` for activation, `EdgeLMAccess` for lifecycle management, `PI_Integration_Developer` for design and deployment. Who may run `kubectl` on the cluster is a separate list that Calder's infrastructure team owns.
- **Operations.** SAP ships updates roughly monthly, per the FAQ; plan a test edge node or a test window, and stay within n-1. Patch Kubernetes, the nodes, the database and the cache on your own schedule. Monitor disk and database growth, because message logs live there.
- **Recovery.** Back up the database and cache, write down RPO and RTO, test a restore, and give every queue a replay source. SAP's reference architecture is explicit that high availability isn't disaster recovery.
- **Cost.** Count the cluster, the stores, the backups and the people, not just the node in the edition. A second site is a second cluster.
- **Clean core.** The edge doesn't change what it calls in S/4HANA: the same released APIs as the cloud runtime. An edge flow that reads tables through a custom RFC module is still the old `I02` in a new place.

### Where AI fits

Edge Integration Cell doesn't add an AI capability of its own that SAP documents for this decision. Three connections matter:

- **AI adapters run where the flow runs.** The [AI in Integration Suite topic](https://erpfde.com/topics/ai-in-sap-integration-suite/) notes that SAP's guide lists the generative AI adapter for both the cloud runtime and the edge. A flow on the edge that calls a model still sends that content to the model's service, so residency arguments for the edge don't survive an AI step in the same flow.
- **Agents are one more consumer.** An agent calling Calder's APIs through the edge's API proxies meets the same policies as any other caller.
- **The MCP gateway is a cloud feature.** The [model context protocol topic](https://erpfde.com/topics/model-context-protocol/) points out that SAP's page for the MCP gateway covers the cloud runtime only. Don't plan agent access through the edge until SAP states it.

### Pitfalls

- **Moving everything "to be safe".** Every flow on the edge is a flow you now help run. Keep a written reason per flow.
- **The built-in database in production.** SAP Learning and the FAQ both say it is for test and demo only.
- **HA without recovery.** Three nodes and no tested restore loses the queues on the day the cluster is lost.
- **Trace logging left on.** It undoes the residency argument the edge was bought for.
- **Falling behind.** Postponing updates repeatedly leaves you outside the supported n-1 window.
- **Assuming parity.** A flow that uses the Partner Directory or number ranges won't run on the edge as designed.
- **Treating the offline window as a feature.** Four hours covers an outage, not a site that is often disconnected.
- **An edge for a flow that retires.** Moving `I11` before July 2027 is work thrown away.

### Exercise: a second site asks for an edge

Augsburg's quality team wants raw gauge calibration files from its file share moved into the quality system. The calibration lab's contract keeps the raw files inside Calder's network (a course assumption), and the files sit on an NFS share. Quality also wants the message logs archived for ten years.

1. In `unit26/edge/candidates.json`, add this entry before the closing `]` (add a comma after the previous entry):

   ```json
   {"id": "I15", "name": "Augsburg gauge calibration files",
    "site": "Augsburg", "reasons": ["residency"], "adapters": ["NFS", "OData"],
    "needs": ["mpl_archiving"], "per_hour": 2, "proposed": "EDGE"}
   ```

2. Run `python unit26/edge_decision.py`. `I15` shows `BLOCKED`: archiving message logs to external storage isn't supported on the edge, per SAP Learning.
3. Agree with quality that the archive is kept on the file share itself, not in the message logs. Change `"needs": ["mpl_archiving"]` to `"needs": []` and run the placement again.
4. Read the new warning: two sites need edge nodes, and each site is its own cluster.
5. Add a line to your ADR amendment: whether Augsburg gets its own node (an add-on beyond the one in the edition, per SAP Learning) or whether `I15` waits for a design that doesn't need the edge.

**Done when:** the placement prints `9 flows: 5 CLOUD, 3 EDGE, 1 RETIRE. 6 of 9 differ from the proposal.`, lists `Edge sites needed: Augsburg, Rockford` with the second-site warning, and your ADR has a decision for Augsburg. Keep the ADR in your capstone pack.

### Check yourself

1. Which part of Integration Suite moves to Calder's cluster with Edge Integration Cell?
   - A. The design workspace, so flows can be edited without the cloud
   - B. The runtime that receives, maps and sends each message
   - C. User management, so plant staff sign in locally
   - D. The monitor, so message logs never reach the cloud

   Answer: B. The edge moves the runtime only. Design, deployment, user management and the monitor stay in BTP, and status information goes up through the outbound tunnel.

2. Why does the review place the distributor EDI flow `I10` in the cloud?
   - A. EDI flows can't run on any Integration Suite runtime
   - B. The cloud runtime processes EDI messages for free
   - C. SAP blocks IDoc adapters on Edge Integration Cell
   - D. No edge reason, plus features restricted there

   Answer: D. `I10` has no residency, ground-to-ground, network, PI/PO or adapter reason to run on site, so it stays in the cloud. It also needs B2B features and the Partner Directory, which SAP lists as restricted or missing on the edge.

3. The draft opens an inbound port from the internet "so SAP can call in". What does rule `E07` expect instead?
   - A. Outbound HTTPS on 443 through the proxy, nothing inbound
   - B. An inbound port restricted to SAP's published IP addresses
   - C. A VPN from BTP into Rockford's server room
   - D. Inbound traffic only during deployments, closed afterwards

   Answer: A. SAP Learning says the edge needs outbound HTTPS on port 443 and no inbound internet ports. The embedded Cloud Connector keeps an outbound tunnel that carries deployments and monitoring queries.

4. The cluster is lost and rebuilt. Why does the reviewed design lose no confirmations?
   - A. SAP's emergency recovery restores the message service's volumes
   - B. Three nodes keep a copy of every queue on each node
   - C. Each queue names a source to resend its messages
   - D. The cloud runtime holds a backup of all edge queues

   Answer: C. SAP's reference architecture says emergency recovery doesn't recover the message service's persistent volumes, so queued messages can be lost. The reviewed design resends them from the MES outbox and the bench share.

5. Rockford's internet line will be down for six hours during a provider's planned work. What would you do?
   - A. Nothing, because the edge runs independently of the cloud
   - B. Treat it as beyond the offline window and plan around it
   - C. Move the edge flows to the cloud runtime for the day
   - D. Postpone every SAP update until the work is finished

   Answer: B. SAP Learning documents up to four hours without the cloud connection, so six hours is outside what SAP states. The script marks it at risk rather than guessing; the plan might shorten the work window or queue confirmations at the MES deliberately.

6. A developer wants trace logging on in production to debug a mapping. Why does rule `E12` fail it?
   - A. Trace logging stops the edge from processing messages
   - B. Trace logging is a feature missing on the edge runtime
   - C. Trace logging doubles the message count that SAP bills
   - D. It can carry payloads into logs the cloud sees

   Answer: D. SAP Learning warns that trace-level logging can put message content into cloud-accessible logs. That undoes the reason many flows are on the edge, so the course rule keeps it to test.

7. Which store set does rule `E04` accept for a production edge runtime?
   - A. The built-in PostgreSQL and Redis inside the cluster
   - B. Any database, as long as it runs on the same nodes
   - C. An external PostgreSQL or SAP HANA and a supported cache
   - D. SAP HANA only, since PostgreSQL support ended in 2026

   Answer: C. SAP Learning says production needs an external database (PostgreSQL or SAP HANA) and an external cache (Redis 6.x or 7.x, Valkey 8.0 to 8.2, or SAP HANA). The in-cluster versions are for test and development.

## Sources

- [Positioning Edge Integration Cell (SAP Learning course Introducing Edge Integration Cell, read 2026-11-30)](https://learning.sap.com/courses/introducing-edge-integration-cell/positioning-edge-integration-cell_bf3551d7-2c12-41ba-93fd-1038a6159863): optional hybrid runtime inside Integration Suite, not a standalone product; design in the cloud cockpit, user management in BTP; deploy on premise or a customer-managed cloud; only operational metadata synchronizes, payload processed and stored locally, trace logging can put content in cloud-visible logs; up to 4 hours offline, not for permanent offline use; artifacts largely compatible, not identical; four decision questions
- [Prerequisites and Deployment Readiness (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/introducing-edge-integration-cell/prerequisites-and-deployment-readiness_e2e9068c-4a6e-480f-8045-1b7c80206b61): included with Standard, Enhanced, CPEA and pay-as-you-go, not Starter; edge_integration_cell service plan and Edge Lifecycle Management entitlements; one edge node per qualifying subscription, add-on for more; role collections Integration_Provisioner, EdgeLMAccess, PI_Integration_Developer; AKS, EKS, GKE, SUSE Rancher RKE2, Red Hat OpenShift; linux/amd64 only; RWO and RWX storage; PostgreSQL or SAP HANA, Redis 6.x/7.x, Valkey 8.0-8.2 or SAP HANA, TLS required, in-cluster only for test; non-HA about 10 cores/32 GiB/101 GiB, HA about 20/64/204; outbound HTTPS 443 only; up to 4 hours offline; six deployment steps; EIC messages at 50% of the standard rate
- [Current Scope, Limitations, and Roadmap (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/introducing-edge-integration-cell/current-scope-limitations-and-roadmap_b888df5f-27db-4d82-9125-74099cabc2ee): worker runs flows, local data store and variables, local JMS, API proxies with policies; edge-only adapters RFC sender, NFS, OFTP2; limits (500 MB content, 20 keystores, 500 credentials); no Partner Directory, Inspect, number ranges or MPL archiving, some OAuth flows and B2B scenario types missing; SAP Note 3391207 is the authoritative scope list; decision guide edge vs cloud
- [Exploring Kubernetes Concepts in EIC (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/introducing-edge-integration-cell/exploring-kubernetes-concepts-in-eic_e06ac920-10cb-4fae-944b-3cc0420a7cad): Camel-based worker, Envoy-based policy engine, message service; namespaces such as edge-icell; external database and cache in production; Cloud Connector embedded in Edge Lifecycle Management keeps an outbound tunnel, external Cloud Connector possible; Istio ingress, restricted installation where Istio exists (SAP Note 3618713); ELM onboards, delivers software, runs rolling upgrades
- [SAP Integration Suite Edge Integration Cell on Hyperscalers (SAP Architecture Center, last updated 2026-10-28, read 2026-11-30)](https://architecture.learning.sap.com/docs/ref-arch/0a229d): design in BTP, runtime in a private VPC or on premise on Kubernetes; use cases PI/PO modernization, latency and regional availability, on-premise and private cloud, regulatory compliance, industrial and IoT edge processing; emergency recovery does not recover message service persistent volumes, stored JMS messages can be lost when a cluster is rebuilt; high availability is not a disaster recovery plan; plan recovery of Kubernetes and the external database separately with RTO and RPO
- [SAP Integration Suite Edge Integration Cell on AWS (SAP Architecture Center, last updated 2026-10-28, read 2026-11-30)](https://architecture.learning.sap.com/docs/ref-arch/cd0961): VPC across three availability zones, private subnets for the runtime, EKS, RDS for PostgreSQL with Multi-AZ, ElastiCache for Redis, EBS for RWO and EFS for RWX, SAP-samples setup repository; a small production deployment and a starting point
- [Onboarding SAP Edge Integration Cell with Azure (Microsoft Learn, last updated 2026-09-03, read 2026-11-30)](https://learn.microsoft.com/en-us/azure/sap/workloads/sap-edge-integration-cell-with-azure): AKS with Azure Database for PostgreSQL and Azure Cache for Redis recommended for production; Azure Arc-enabled Kubernetes for on premise; single node pool with built-in database for test only; Azure Red Hat OpenShift; Terraform accelerator; check SAP Note 3247839
- [SAP Integration Suite pricing (sap.com, read 2026-11-30)](https://www.sap.com/products/technology-platform/integration-suite/pricing.html): Starter, Standard and Enhanced editions; an Edge integration cell row (runtimes in your private cloud or on-premise landscape); messages above 250 KB count as more messages; no trial for Edge Integration Cell shown
- [What's New in SAP Integration Suite, March 31, 2026 (SAP user group webinar slides)](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260331_sap_integration_suite_monthly_update.pdf): SAP HANA 2.0 as database or datastore, Valkey 8.0-8.2; restricted access for shared OpenShift and RKE2 clusters; external customer-managed Cloud Connector; OFTP2 adapter only on Edge Integration Cell; message logs to SAP Focused Run or SAP Cloud ALM; Enhanced edition includes 1 EIC node; roadmap items (offline for 48 hours, more B2B, several instances per cluster) marked subject to change
- [Frequently Asked Questions (FAQ) on Edge Integration Cell (SAP Community, SAP product team post, read 2026-11-30)](https://community.sap.com/t5/integration-blog-posts/frequently-asked-questions-faq-on-edge-integration-cell/ba-p/13571636): dedicated cluster strongly recommended; built-in database and cache for test and demo only; updates about every four weeks, versions n and n-1 supported, an update can be delayed by four weeks; payload stays in the customer's database, the cloud monitor pulls metadata; under RISE the customer installs it on a supported Kubernetes platform, SAP does not host it
