Pub/Sub Input

REST API service that receives ERP data and publishes messages to Google Cloud Pub/Sub topics.

Purpose

  • Receives ERP data via REST endpoints

  • Validates incoming data

  • Publishes messages to Pub/Sub topics with metadata attributes

  • Provides cloud-native messaging integration

Prerequisites

This application requires an existing Google Cloud Platform project with Pub/Sub. It does not include GCP project setup or topic creation.

Ensure: - GCP project with Pub/Sub API enabled - Service account with roles/pubsub.publisher role - Required topics are created - Service account JSON key available

Configuration

Application Settings

See [application.yml](src/main/resources/application.yml) for full configuration.

Key settings: - GCP Project ID: Target GCP project - Main topic: Target topic for publishing messages - Credentials file: Path to service account key - Server configuration: Server port and context path - Actuator endpoints: Swagger UI, metrics and health

Message Publishing Flow

Diagram