Skip to main content

Integration Interfaces

An integration interface is a way a system offers its functions or data to others: an API, a topic, a queue, a file drop. Interfaces are the building blocks of integration. The systems inventory lists the systems, this page lists what they offer, and the integrations inventory records who actually uses it.

Interfaces as building blocks​

TOGAF describes a building block as "a package of functionality defined to meet the business needs across an organization". Integration interfaces work exactly like that in solution design:

  • A solution design starts by looking at the interfaces that already exist. If the customer master already publishes CustomerUpdated events, a new system subscribes to them instead of building another export.
  • The catalog of interfaces shapes what designs are possible, and how quickly. A landscape with well-documented public APIs and events allows new solutions to be assembled. A landscape without them forces every design to start with point-to-point integration work.
  • New interfaces designed for one solution become building blocks for the next ones, much like promoted decisions.

This is why interfaces are recorded on their own, independent of their consumers. An interface with no consumers yet is still a building block.

Types of interfaces​

Interfaces come in three broad families. All of them belong in the catalog, not only the APIs.

Synchronous APIs​

The consumer calls the provider and waits for the answer.

StyleTypical useContract format
REST over HTTPMost business APIs, public and internalOpenAPI
GraphQLFlexible queries for front ends that combine data from several sourcesGraphQL schema
gRPCFast, strongly typed calls between internal servicesProtocol Buffers
SOAPOlder enterprise and partner integrationsWSDL

Synchronous APIs are the right choice when the consumer needs the current state or an immediate answer. They are designed, published and secured through API management, offered as a platform capability.

Asynchronous messaging and events​

The provider publishes a message, and consumers process it when they are ready. Producer and consumers do not need to be available at the same time.

StyleTypical useContract format
Event streams, for example Kafka topicsBusiness events that several consumers react to: OrderPlaced, CustomerUpdatedAsyncAPI, schemas in a schema registry (Avro, JSON Schema, Protobuf)
Message queues, for example Amazon SQS or RabbitMQCommands and work items for one consumer, with retriesAsyncAPI, message schemas
WebhooksNotifying external partners or SaaS products about changesOpenAPI (callbacks) or the provider's documentation

AsyncAPI does for event-driven interfaces what OpenAPI does for REST: it describes the channels, such as topics or queues, the messages and their schemas, in a machine-readable format. See Event-Driven Architecture for the concepts.

Only public events are integration interfaces. Private events, used inside one system, stay internal to it. See public contracts and private exchanges.

Data and file exchange​

Data is also exchanged in bulk, as files or tables, often on a schedule.

StyleTypical useContract
Files in object storage, for example Amazon S3Bulk exports and imports, exchange with partners, input to a data lake. An event notification can signal that a new file has arrived.File format and schema (CSV, JSON, Parquet), naming and folder conventions, delivery schedule
SFTP file transferPartners and legacy systemsFile layout specification
Change data capture (CDC)Streaming database changes into Kafka or a data lakeSource table schemas
Data productsCurated data sets for analytics and AIData contract
Shared databaseTwo systems reading and writing the same tablesNone: the schema itself is the contract

File transfer is one of the oldest integration styles and still very common, especially with partners. It is easy to forget, because nobody sees it as an "API". Yet a renamed column in a nightly file can break a downstream process just as badly as a changed REST endpoint.

A shared database is the interface to avoid between systems owned by different teams: neither side can change its schema without breaking the other. If one exists, record it, so that the coupling is visible and can be planned away.

For guidance on when to prefer which family, see Integration patterns in Organizing Legacy Spaghetti.

What to record​

Each interface is recorded once, with the system that provides it:

AttributeExample
Name and descriptionOrder events: published when an order is placed, changed or cancelled
TypeREST API, Kafka topic, SQS queue, S3 file drop, SFTP, CDC stream, shared database
ProviderThe system and team that own the interface
Data entitiesThe data entities it exposes, for example Order and Customer
ClassificationThe most sensitive data it exposes, see Data Classification
ContractA link to the OpenAPI or AsyncAPI definition, schema or file specification
VisibilityPublic (for other teams or partners) or private (within one system)
Lifecycle statusPlanned, active, deprecated or retired, as for systems

Contracts are best kept as code, in the provider's repository, and published to the catalog by the pipeline. In ArchiMate, interfaces are modeled as Application Interfaces. In TOGAF, they are listed in the Interface Catalog. In Backstage, an API entity can describe OpenAPI, AsyncAPI, GraphQL and gRPC interfaces.

Questions the interface catalog can answer​

  • Is there already an interface that provides customer data, before a team builds a new one?
  • Which interfaces does a system offer, and which of them are public?
  • Which interfaces expose personal data?
  • Which interfaces are deprecated, and what replaces them?
  • Which systems still offer only files or a shared database?