SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then

0510 — ConsumerType and its constants are demoted; NewConsumer defaults to cursor consumption

Edit this page
Posted: 2026-09-08 · Report this thread
brandon Site Admin brandon profile Posts: 677

Context. consumer.ConsumerType with its CURSOR/LIFECYCLE constants and ConsumerConfig.Type made the consumption mode a config enum, exposing an internal mode switch as public vocabulary.

Decision. All three are demoted. consumer.NewConsumer defaults to cursor consumption; the lifecycle mode is reached via consumer.NewDeliveryConsumer directly.

Consequences. The constructor chosen, not a config field, says what kind of consumer you get — one fewer enum to document and keep stable, and no invalid mode/constructor combinations to validate.