Skip to content

alerts: schema 00.09's compressed cutouts, the reader package and the Kafka wire format - #252

Merged
rusholme merged 4 commits into
mainfrom
alert-size
Dec 4, 2026
Merged

rusholme merged 4 commits into
mainfrom
alert-size

Conversation

@rusholme

@rusholme rusholme commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Companion to Caltech-IPAC/rapid#686 (smaller alert packets and a community reader modelled on Rubin's). It corrects the design pages that change describes; it should merge with that pull request, not before it.

Pages

  • system/alerts.md: the packet is described at schema 00.09. The three cutout rows carry the new descriptions (RICE-compressed FITS, image in HDU 1, lossy), the schema files are named at their new home in rapid_alert_packet/schema/, and the size paragraph gives the measured figures.
  • system/foundation.md: a Kafka message's value is the Confluent wire format (a zero byte, the schema version's id, the Avro record without its schema), read by rapid_alert_packet; the producer gzips its batches.
  • system/decisions.md: two new entries, ruled by the alert schema owner's approval of rapid pull request 686 (Emily Everetts, 2026-12-04), which shipped them:
    • compressed cutouts (quantize level 4, one tile, the zero-keeping dither, the checksum seed, with the measured error);
    • the message's wire format and the reader package, with what was set aside (Glue's framing, the container block sent alone, a producer codec with the container kept).
  • system/index.md: the alerts page's row names schema 00.09.

Measured figures the pages quote

From 1,620 alerts of schema 00.08 read from the alert topic and made again with the rapid change (an offline re-encode, not a pipeline run): a message goes from 218.4 kB to 34.0 kB on the wire and the brokers, and is 89.8 kB as handed to a consumer; over 4,860 cutouts the added error is 0.069 sigma rms and 0.144 sigma at the worst pixel.

Checks

scripts/check-public-safety.sh passes. The site build was not run locally; this pull request's build is its first.

🤖 Generated with Claude Code

… Kafka wire format

Companion to rapid pull request 686. alerts.md describes the packet at
schema 00.09: the three cutout fields are RICE-compressed FITS, the schema
files live in rapid_alert_packet, and the sizes are those measured on 1,620
alerts read from the topic and made again (2026-12-04). foundation.md says
what a Kafka message's value is (the Confluent wire format, read by
rapid_alert_packet) and that the producer gzips its batches. decisions.md
gains two entries, both marked proposed and not yet ruled: compressed
cutouts, and the message's wire format with the reader package.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@rusholme
rusholme requested a review from eramey16 December 4, 2026 06:51
rusholme and others added 3 commits December 4, 2026 06:52
…chema 00.09

The alerts page's heading changed with the schema version, so the three
links to it broke the build; the products row also named schema 00.08 and
deflate level 1.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…proposed

Both entries waited on the alert schema owner; Emily Everetts approved rapid
pull request 686, which shipped them, on 2026-12-04.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@rusholme
rusholme merged commit dd343f5 into main Dec 4, 2026
1 check passed
@rusholme
rusholme deleted the alert-size branch December 4, 2026 21:23
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