Adobe Commerce · updated

How do App Builder extensions for Adobe Commerce work?

An App Builder extension is custom code that runs outside the Commerce application, on Adobe's serverless platform, and talks to Commerce through supported APIs, events, webhooks and extension points. Adobe calls this out-of-process extensibility. On Adobe Commerce as a Cloud Service it is the only way to extend the product; on PaaS it is the way Adobe recommends.

In plain words

In the past, changing how the shop behaves meant adding code inside the shop software, which made every upgrade harder. Now the custom code sits next to the shop instead. The shop tells it when something happens, or asks it a question, and carries on.

The building blocks

BlockWhat Adobe says it does
App BuilderThe platform for building secure, scalable Commerce applications.
I/O RuntimeHosts the serverless actions that run your custom logic.
Adobe I/O Events for Adobe CommerceMakes Commerce transactional data available to App Builder apps, so an app can act when something happens instead of polling an API.
WebhooksSynchronous calls to external systems, for when Commerce needs to compute or validate something immediately.
Admin UI SDKLets an App Builder developer extend the Commerce Admin with custom menus and pages.
API MeshAn orchestration layer for integrating private and third-party APIs behind one GraphQL endpoint.
Starter kitsIntegration and checkout starter kits; Adobe calls them opinionated accelerators.
App ManagementThe application lifecycle: associate, configure, install, update and remove Commerce apps.

Events or webhooks?

  • Use an event when the other system only needs to be told. Adobe's example: an order is placed, the app receives the event and pushes the details to an ERP system.
  • Use a webhook when Commerce must wait for an answer. Adobe's example: checking a product's stock status before it can be bought.
  • Adobe's advice is to create a webhook only if synchronous communication with the external server is critical. For many cases asynchronous events are enough.
  • A webhook always starts with an event occurring in Adobe Commerce.

Where AEM and Edge Delivery teams meet it

  • AEM Commerce Prerender, which writes product page HTML for the Edge Delivery storefront, is an App Builder app that you deploy.
  • API Mesh can sit in front of the storefront: Adobe's set-up page for the cloud service says that if you use API Mesh, you enter its GraphQL endpoint as the Commerce GraphQL endpoint.
  • A move from PaaS to Adobe Commerce as a Cloud Service rebuilds PHP customisations as App Builder apps.

What PaaS and the cloud service allow

PaaSCommerce as a Cloud Service
Extensibility modelIn-process PHP and out-of-processOut-of-process only
Admin consolePHP customisation and theming, or App Builder (recommended)App Builder
Custom data storageDatabase, file, cache, queueApp Builder state library (file only)
TechnologiesCSS, CLI, HTML, JS, PHP, XMLCSS, CLI, HTML, JS, Node

How to plan a first extension

  1. Write down what the custom logic must do and which Commerce action starts it.
  2. Decide whether Commerce must wait for the answer. If not, use an event; if so, a webhook.
  3. Check the access you need: Adobe's prerender page lists Adobe Developer Console access with the Developer role and an App Builder workspace.
  4. Start from a starter kit where one fits, rather than an empty project.
  5. Deploy to a test workspace and a sandbox Commerce instance before production.

Related tools and pages on this site

Questions

Is an App Builder app the same as a Magento module?

No. A module is PHP that runs inside the Commerce application. An App Builder app runs outside it and communicates through APIs, events, webhooks and extension points.

Can I still write PHP modules?

On PaaS and on-premises, yes; Adobe lists in-process PHP customisation there, with out-of-process as the recommended route. On Adobe Commerce as a Cloud Service, no.

Which event names can I subscribe to?

Adobe's events documentation lists them. The one example on the overview page we read is plugin.magento.sales.api.order_management.place, which fires when a shopper places an order.

Does this site build App Builder apps?

No. Surge Migrate converts content pages. This page explains the model so AEM and Edge Delivery teams know what the Commerce side is talking about.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one Adobe Commerce question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →