Repository navigation
Add end-to-end benchmark harness and refresh README - #20
Merged
Merged
Conversation
test/bench drives a real gateway against real PostgreSQL and sinks and times it from the gateway's own metrics: backlog drain (stream), watermark backfill, and commit-to-consumer latency over Redis Streams. NATS JetStream runs in-process and the webhook receiver is built in; RedisJSON and Meilisearch are opt-in via flags. README: lead paragraph names every sink, adds use cases, a contents line, a Performance section with measured results, a sink overview table, and fixes stale details (routing defaults for all key-templated sinks, Meilisearch primary_key, doctor checks, endpoints, metrics, architecture tree). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcYXsMTRwCcvgt9sytvXPU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Benchmark harness (
test/bench). A Go program that runs a real gateway binary against a real PostgreSQL and real sinks. It times each run from the gateway's own Prometheus counters and stops the clock only when every sink has acknowledged every event. It has three modes:XREAD, measuring commit to consumer.NATS JetStream runs in-process through
nats-server/v2, which is already ingo.mod, and the webhook receiver is built into the harness. RedisJSON and Meilisearch are opt-in via-redis-jsonand-meili. The harness touches only its own slot, publication, tables andgtcbench:*Redis keys.README.
idcolumn now describesprimary_key.gtc doctordescription now includes the NATS and webhook checks./api/historyto the endpoints and the missing metrics to the list.Results (median of three runs; 4 vCPU, with PostgreSQL 16, Redis, NATS and GTC all on the same VM):
Latency at 1,000 rows/s, commit to consumer: p50 6.8 ms, p99 12.0 ms.
Type of change
Checklist
go test ./...passesgofmt/go vetare cleanREADME.md/CLAUDE.mdupdated if env vars or behavior changedNotes for the reviewer
CDC_BATCH_LINGERto 50 ms filled the batches but gained only about 3% here, because the box is CPU-bound. On separate hosts it may matter more.Generated by Claude Code