← Back to scenarios
ScenarioCatalog DB

Event payload mapper

Convert incoming event payloads into the normalized analytics event shape used by the system.

Problem

External event producers emit payloads with differing structures, while analytics consumers require one normalized event contract.

Related patterns

Implementations

Adapter

TypeScriptApplication

Adapter in TypeScript

A TypeScript implementation of the Adapter pattern.

TypeScript
export interface TaskProvider {
  getTask(id: string): Promise<Task>;
}

Associated technologies