Skip to main content

🏗️ Framework Architecture

This document provides a high-level overview of how the Ocean framework works. For detailed information about specific aspects, see the architecture sections below.

Overview

Ocean is a framework that orchestrates data synchronization between third-party systems and Port. It handles:

  • Event Management: Listening for resync requests from Port
  • Data Extraction: Running user-defined resync functions
  • Data Transformation: Converting raw data to Port entities using JQ mappings
  • State Synchronization: Comparing and syncing entities with Port
  • Real-time Updates: Processing live events from third-party systems

Architecture Documentation

High-Level Architecture

Summary

The Ocean framework orchestrates a complete ETL pipeline:

  1. Listen: Event listeners monitor for resync requests
  2. Extract: User code fetches data from third-party APIs
  3. Transform: JQ mappings convert raw data to Port entities
  4. Load: State applier syncs entities with Port
  5. Monitor: Metrics track the entire process

All of this happens automatically - you just need to implement the @ocean.on_resync() functions that yield raw data batches.