Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 7 min read Announcement mediumAdept

Query your WorkOS users in Neon with the WorkOS Sync Engine

WorkOS Sync Engine, open-sourced by WorkOS, mirrors WorkOS identity data (users, organizations, memberships, sessions, auth attempts, events) into a workos schema in Postgres. Identity data can then be joined with product tables in SQL instead of paged through the API. The engine does a full backfill, follows the WorkOS Events API in order, and periodically reconciles against WorkOS to catch deletions, with idempotent handling of duplicate or out-of-order events. On Neon it runs as a Neon Function scheduled by cron Function Triggers (tick every minute, backfill every 5 minutes, hourly and weekly reconcile) plus a webhook. It can also run as a library, CLI or container against any Postgres connection string.

Assumes: PostgreSQL basicsSQL joinscron schedules

Related posts

  • Durable and auditable workflows with DBOS and ClickHouse Managed Postgres

    ClickHouse mediumAdept

    DBOS, an open-source Postgres-native durable execution library, stores workflow and step checkpoints, queues and schedules in Postgres so crashed processes resume from the last completed step without a separate orchestrator. The walkthrough runs the DBOS Python starter app against ClickHouse Managed Postgres, then uses WalShadow (private preview) to replicate the dbos schema from the Postgres WAL into ClickHouse. With WalShadow's soft-delete setting, deletions arrive as tombstone rows (_is_deleted = 1, _commit_ts) in a ReplacingMergeTree. That lets teams keep short retention in Postgres (e.g., seven days) while holding years of auditable workflow history in ClickHouse.

  • How Cedalio uses Neon for an efficient development workflow

    Neon easyNovice

    Cedalio, an ESG data verification startup, moved from DynamoDB to Postgres and picked Neon over RDS for a simpler API and console. GitHub Actions creates a Neon database branch and a Fly.io app instance for each PR, then deletes both after merge, and scale-to-zero keeps these temporary environments cheap. A one-database-per-customer design gives tenant isolation. Their backend reads the Postgres WAL, bundles and encrypts operations, stores them optionally on IPFS or Arweave, and commits a hash to a client-owned smart contract for tamper-evident auditing.

  • Workflows are coming to Supabase

    Supabase mediumAdept

    Supabase is building Workflows, an open source orchestration engine written in Elixir that uses the Amazon States Language to coordinate existing functions (AWS, GCP, Azure, OpenFaaS, Postgres) in response to database events or HTTP calls. Jobs, queues and logs are stored in Postgres via Oban. Workflows can be persistent, surviving restarts, or transient and in-memory. A worked example shows a state machine that maps over Realtime INSERT events on a users table, waits 86400 seconds, then sends a templated welcome email. The interpreter is already open sourced on Hex, with dashboard integration and a Zapier-like UI planned.

  • Building with Stripe Data Pipeline and the Neon backend

    Neon mediumAdept

    Stripe Data Pipeline's real-time sync streams Stripe objects into Postgres tables within seconds, which lets apps drop webhooks entirely: they write to Stripe's API and read charges, prices and promotion codes from synced stripe.* tables. Two example apps compute credit balances as a SQL view (purchased minus spent), so refunds, disputes and duplicate deliveries are handled without handler code. Double spending is prevented by a per-user advisory lock plus a conditional UPDATE that claims a job only if the view shows enough balance. Neon point-in-time branches copy Stripe data, app data, object storage and disabled triggers, so billing bugs can be reproduced and fixed locally without touching production.

  • Replication redefined: How we built a low-latency, multi-tenant data replication platform

    Datadog Engineering mediumAdept

    Datadog grew a single Postgres-to-search replication pipeline into a multi-tenant CDC platform built on Debezium, Kafka, and Kafka Connect. Offloading join-heavy faceted search from a shared Postgres database into a search platform, with data denormalized during replication, cut page loads from about 30 s to about 1 s while keeping replication lag near 500 ms. The platform favors asynchronous replication for availability and throughput, and uses Temporal workflows to automate provisioning steps such as logical replication setup, slots, topics, heartbeat tables, and sink connectors. Pre-migration SQL validation and a backward-compatible Schema Registry keep schema changes from breaking pipelines, while single message transforms and an enrichment API let teams customize their data.

The quest for software engineering knowledge.

Look:
Layout: