All notable changes to this project will be documented in this file. This change log follows the conventions of keepachangelog.com.
This is a big release with lots of changes. Read the notes carefully if upgrading!
status includes :listening?: whether the consumer's listener is currently LISTENing on its topic (always false for poll-only consumers).start-listener: a LISTEN connection that many consumers can share. Like consumers, listeners support status (:state, :connected?, :listening?, :topics, :reconnects), graceful-shutdown, and shutdown-await.start-standalone-consumer: start a consumer with a listener of its own. start-consumer is an alias for it.start-listening-consumer: start a consumer on a shared listener.start-poll-only-consumer: start a poll-only consumer, with no LISTEN connection.:scheduler: poll on a ScheduledExecutorService you supply (and that ottla won't shut down).start-listener option :executor: run the listener on an ExecutorService you supply (and that ottla won't shut down).append! and append-one! accept a topic map (as returned by add-topic!, ensure-topic, or list-topics) in place of a topic name, skipping the per-call topic lookup.BEFORE INSERT statement trigger, so eid order matches commit order.ottla, with the payload <topic>:<eid>, instead of on a channel named after the topic. A listener LISTENs once and routes notifications by topic, so a consumer joining a running listener is listening immediately. Run init! after upgrading to update the trigger function; until then, existing topics notify the old way and consumers fall back to polling for them. Consumers from earlier versions don't receive the new notifications either, so upgrade them together.:listen-min-ms is now 10 (previously 2), for both a consumer's own listener and start-listener. Right after a notification, the listener checks for more every 10ms instead of every 2ms, which is much less noisy under steady traffic, at the cost of up to ~8ms more latency on a burst's follow-up records. Pass :listen-min-ms 2 to keep the old behavior.start-consumer no longer waits for its listener to be listening before returning. Instead, a consumer fetches when its listener starts (or resumes) listening on its topic, so records appended in between aren't missed.:auto commit mode is at-most-once (the offset is committed before the handler runs), not at-least-once as previously documented. Added guidance on choosing between :auto, :tx-wrap, and :manual.init! after upgrading to add the trigger to existing topics.:listen-min-ms (default 2): delay between LISTEN checks right after a notification:listen-max-ms (default 250): maximum delay between LISTEN checks while idle:listen-min-ms, doubles while idle up to :listen-max-ms, and resets on any notification. Idle consumers wake ~4x/sec instead of ~500x/sec, but the first record after a quiet period may take up to :listen-max-ms to be picked up.:listen-ms is now an alias for :listen-max-ms (previously the fixed check interval). Use :listen-min-ms and :listen-max-ms with the same value to keep a fixed interval.ottla.core/ensure-subscriptionottla.core/add-subscription! for explicit subscription creationottla.core/remove-subscription! to delete a consumer group subscription(status consumer) now returns a map with :state, :topic, :group, :record-count, and :last-processed-atappend! and append-one! now return the largest eid insertedcommit-offset! and reset-consumer-offset! now return a boolean indicating whether the subscription was updatedreset-consumer-offset! now effectively nullifies updated_at for more consistent reporting:selections options instead of :topics for list-subscriptions and topic-subscriptionsottla.core/trim-topic! for log retention and cleanupottla.core/list-subscriptions:index-key? option for add-topic! and ensure-topic (with default false):max-records option to consumer to cap batch size (with default 100)ottla.core/topic-subscriptions to the public API:updated-at field in subscriptionsclojure.tools.logging instead of println for warnings and errorsottla.core/ensure-topic for idempotent topic creationtopic-subscriptions for getting summaries of subscriptions to
topics and their offsets.commit-offset! for manual commit modereset-consumer-offset! to do "rewind":val-type to :value-type in parameters for consistencyottla.core/append to ottla.core/append! to make naming convention.Initial public release
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |