Commerce Coordinator Technical Glossary

Draft

This is a summary of some of the vocabulary we’ve been using to think about the Commerce Coordinator.

Types of connections in Commerce Coordinator, and which file they should be put in.

Glossary

  • Action

    • Definition: An operation that needs to run before, during, or after a purchase.

    • Has inputs and outputs.

  • Purchase Action Flow (or just Purchase Flow)

    • Definition: A sequence and record of Actions for a purchase.

    • One purchase can start many Purchase Flows.

    • The output of one Action in a Purchase Flow may be required for the input of the next Action in a Purchase Flow.

    • Internal Connections (defined later) are what connect one Action in the Purchase Flow sequence to the next Action in the Purchase Flow sequence.

  • Service

    • Definition: Independently deployed software that performs an Action in a Purchase Flow.

    • A Purchase Flow triggers one or more Services to perform Actions in a certain sequence.

    • A Service can offer and implement the same Action.

    • Services that are part of Open edX are an Open edX Service.

    • Services that are not part of Open edX are a Third Party Service.

      • The legacy Ecommerce service is special.

        • We pretend it’s a Third Party Service.

        • Why: In the future, we want the legacy Ecommerce service functions to be external.

  • Action Implementation

    • Definition: The implementation of an Action for a Service.

    • Example: Different Services can implement the same Action. (Credit Card Processor 1, Credit Card Processor 2…)

    • Action Implementations must do the same thing and accept/produce compatible input/outputs as other Action Implementations for the same Action.

  • Commerce Coordinator (or just the Coordinator)

    • Definition: A Django IDA that connects Services to perform Actions in a Purchase Flow.

    • The Coordinator connects:

      • Third Party Services and Open edX Services

      • Third Party Services and other Third Party Services

    • The Coordinator generally does not connect Open edX Services to other Open edX Services. There are other better ways to do that.

      • Exception: The legacy Ecommerce service. See notes under “Service”.

  • Plugin (sometimes called by its old term, a Component)

    • Definition: A Commerce Coordinator Python Django application, loaded either directly via the Commerce Coordinator or side-loaded by an openedx-plugin that either:

      • is an Action Plugin, and implements a single Action in one or more Services in a single Purchase Flow.

      • is a Service Plugin, and performs one or more Actions with a single Service in one or more Purchase Flows.

  • Connection

    • Definition: A way to send or receive information for an Action:

      • by a Plugin from another Plugin: an Internal Connection.

      • by a Plugin to/from a Service: an Outgoing External Connection.

      • by a Service to/from a Plugin: an Incoming External Connection

    • A Plugin typically has:

      • External Connections with one and only one Service.

      • Supported Internal Connections, which may be exercised via configuration to connect the Plugin with one or more other Plugins

Example

This is an example of a couple of the technical glossary’s terms:

Example of a GET of Order History.

Future Work

  • Add an example of an entire Purchase Action Flow using vocabulary of the glossary upfront

  • Add specific examples for key glossary items (e.g., of an Action)

  • Go back and make ADRs and other documents consistent with this glossary.

  • Note: Essentially, our signal configuration is a list of subscribers to topics. In Commerce Coordinator, the subscribers are methods in Plugins, and the topics are Incoming Connections/Signals.

  • Still need: Traceability, storage/auditing, replayability

  • Note: Need to investigate having Commerce Coordinator be a message bus to message bus

  • Add Receiver for Signals & Pipeline Steps for Filters