Skip to content

RavenDB-26046 - Add CDC Sink documentation#2387

Open
ayende wants to merge 8 commits intoravendb:mainfrom
ayende:claude/cdc-sink-docs-main
Open

RavenDB-26046 - Add CDC Sink documentation#2387
ayende wants to merge 8 commits intoravendb:mainfrom
ayende:claude/cdc-sink-docs-main

Conversation

@ayende
Copy link
Copy Markdown
Member

@ayende ayende commented Apr 3, 2026

Summary

Adds full documentation for the new CDC Sink ongoing task (RavenDB 7.2, RavenDB-26046).

Core pages (16): overview, how-it-works, schema-design, embedded-tables, linked-tables, column-mapping, patching, delete-strategies, property-retention, attachment-handling, configuration-reference, api-reference, monitoring, failover-and-consistency, troubleshooting, server-configuration

PostgreSQL pages (9): prerequisites-checklist, wal-configuration, permissions-and-roles, initial-setup, replica-identity, replica-identity-manual-setup, cleanup-and-maintenance, monitoring-postgres, studio-ui

PostgreSQL examples (4): simple-migration, denormalization, event-sourcing, complex-nesting

SQL Server (1): overview stub

Key topics covered:

  • CdcColumnMapping with Column, Name, and CdcColumnType (Default, Json, Attachment)
  • Embedded tables, linked tables, multi-level nesting, relation types
  • JavaScript patches, $row, $old, load(), OnDelete strategies
  • GUID-based slot/publication naming, auto ALTER PUBLICATION
  • Initial load sequence, CDC streaming, failover behavior
  • Error threshold and exponential backoff
  • REST API endpoints, server configuration keys
  • PostgreSQL WAL setup, REPLICA IDENTITY, permissions

Test plan

  • Browse to /server/ongoing-tasks/cdc-sink/overview and verify sidebar navigation
  • Spot-check code samples render correctly (C#, SQL, JavaScript)
  • Verify PostgreSQL and SQL Server subsections appear under CDC Sink in sidebar

ayende added 8 commits April 3, 2026 00:44
Adds full CDC Sink ongoing task documentation in Docusaurus MDX format:

- 16 core pages: overview, how-it-works, schema-design, embedded-tables,
  linked-tables, column-mapping, patching, delete-strategies,
  property-retention, attachment-handling, configuration-reference,
  api-reference, monitoring, failover-and-consistency, troubleshooting,
  server-configuration
- 9 PostgreSQL pages: prerequisites-checklist, wal-configuration,
  permissions-and-roles, initial-setup, replica-identity,
  replica-identity-manual-setup, cleanup-and-maintenance,
  monitoring-postgres, studio-ui
- 4 PostgreSQL examples: simple-migration, denormalization,
  event-sourcing, complex-nesting
- 1 SQL Server stub: overview
- 4 _category_.json navigation files
…al features

- Replace ColumnsMapping (Dictionary) + AttachmentNameMapping (Dictionary) with
  unified Columns list of CdcColumnMapping { Column, Name, Type } across all files
- Add CdcColumnType enum documentation (Default, Json, Attachment)
- Add REST API endpoints table to configuration-reference
- Add CdcSink.PollIntervalInSec to server-configuration
- Add error handling details to monitoring (threshold, fallback, exponential backoff)
- Add ALTER PUBLICATION auto-fix note to postgres/initial-setup
- Fix how-it-works: sequential scan description, Child Before Parent section
- Fix Startup and Verification: split into per-database subsections
- Update all prose references from ColumnsMapping to Columns list
…chment handling

- Replace all new() shorthand with new CdcColumnMapping() across all files
- attachment-handling: clarify that text columns (text, nvarchar, etc.) as well
  as binary columns can use Type = CdcColumnType.Attachment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant