Liking cljdoc? Tell your friends :D

This project uses Break Versioning.


v3.8.0 (2026-12-02)

This is a security and maintenance release, recommended for all users.

It updates Nippy (Carmine's built-in serialization library) to v3.10.0 to fix two security vulnerabilities that could affect you if Carmine deserializes untrusted bytes from Redis (bytes supplied or altered by an untrusted party).

Most users can upgrade without changes. But if you store exceptions or other non-native Nippy objects that use Nippy’s Java Serializable fallback, then please test reading representative saved values with Carmine v3.8.0 using your usual allowlist before updating production.

For more information see Nippy v3.10.0's release notes.

And as always please report any unexpected problems on GitHub. Thanks! 🙏

Sincere apologies for the hassle on this! - Peter Taoussanis

Since v3.7.1 (2026-11-21)

Security

Fixes

  • [fix] [mq] Repeatedly re-enqueuing a message id soon after it was handled could accumulate duplicate queue entries in Redis [baeb5e09]
  • [fix] [mq] enqueue now rejects the reserved message id "end-of-circle" (or :end-of-circle), which could never be delivered [336a433f]
  • [fix] [mq] Honour :init-backoff-ms when re-enqueuing a completed message id before garbage collection [34ae88d1]
  • [fix] [mq] Improve queue-size and queue-status estimates by counting distinct messages and clearing expired backoffs when handling starts [319b5374]
  • [fix] [mq] Requeued messages now use the handling worker's default :lock-ms when no explicit lock time was supplied [79a4f6be]
  • [fix] [mq] Repeatedly requeuing a message during handling with :can-requeue? could accumulate duplicate queue entries in Redis [ce024e21]
  • [fix] [mq] The default queue monitor now repeats size warnings after its backoff while the queue stays over max-queue-size [ef05ed74]

v3.7.1 (2026-11-21)

This is a maintenance release with several fixes, mostly for Carmine's message queue. It should be a safe update for users of v3.7.0.

As usual please test before updating production and report any unexpected problems to the Slack channel or GitHub, thanks! 🙏

- Peter Taoussanis

Since v3.7.0 (2026-11-13)

Fixes

  • [fix] [mq] Idle workers could poll without pause when their blocking sleep failed (incl. all Redis < 6 servers) [c41aa3cd]
  • [fix] [mq] Undecodable messages now skip the handler and are treated as a handler error (previously could be marked done) [78cfd5d5]
  • [fix] [mq] A throwing :throttle-ms fn could silently stop a worker's polling [03fb4d57]
  • [fix] [mq] Repeat enqueues of a message with a pending requeue could inflate the queue size [03fb4d57]
  • [fix] parse-nippy thaw opts were ignored [210b189d]

New

  • [new] [mq] Add :eid to message queue errors [4dc6374a]
  • [doc] [pubsub] Clarify listener connection behaviour re: reconnections [aae9b3ab]

v3.7.0 (2026-11-13)

This is a major feature and maintenance release focused on Carmine's message queue.

As usual please test before updating production and report any unexpected problems to the Slack channel or GitHub, thanks! 🙏

- Peter Taoussanis

Since v3.6.0 (2026-11-09)

Changes

  • [mod] [mq] Message queue workers with custom :nthreads-worker ≠ :nthreads-handler now have a different max poll rate [bd5a79c9]

New

  • [new] [mq] Faster wake-ups: idle workers now smarter about waking when needed [bbbc043e]
  • [new] [mq] Fewer round-trips: worker polls now do more queue maintenance per Redis round-trip [673390ed]
  • [new] [mq] Automatic lock extension: new opt-in :lock-auto-extend-max-ms worker option [291a5fec]
  • [new] [mq] Retry limits and dead letters: new opt-in :max-attempts, :error-retry-backoff-ms, and :on-give-up worker options [03007edc]
  • [new] [mq] Add cancel fn to cancel a pending message [822cf8f7]
  • [new] [mq] enqueue option :reset-init-backoff? is now official (no longer experimental) [bb749ea8]
  • [new] [mq] queue-status now also returns :head-age-ms [8f7b209e]
  • [new] [mq] Add drain fn and drain timeout, make start and stop public [51293c53] [aca2b1b8]
  • [doc] [mq] Document graceful worker shutdown, and update message status diagram [f7e56156] [56ba85b5]

Fixes

  • [fix] [mq] Preserve explicit Nippy options on pre-wrapped messages [ffe4c30f]
  • [fix] [mq] Unthrottled workers stopped polling after their first poll [aca2b1b8]
  • [fix] [mq] Handler :age-ms and queueing-time stats now use the Redis server clock [648d8ccb]
  • [fix] [mq] A handler's leftover interrupt flag can no longer break message finalization [ca592a7d]
  • [fix] [mq] Log handler errors before finalizing, so a finalization failure can't hide them [61f0dffb]
  • [fix] [mq] Restore deprecated make-dequeue-worker [9d75fc52]
  • [fix] [conns] Explicit :spec opts now override the corresponding :uri parts [2bcb33e3]

v3.6.0 (2026-11-09)

This is a maintenance release with minor breaking changes affecting a small minority of users (see linked commits below for details).

Please test carefully before updating production (particularly MQ workloads), and report any unexpected problems on GitHub.

- Peter Taoussanis

Since v3.5.0 (2025-11-06)

BREAKING

  • [mod] [pubsub] [#310] Wait for initial subscriptions (requires PING permission, may throw after :ready-timeout-ms) [3eae109f]
  • [mod] [pubsub] [#311] Make intentional Listener close silent [c94b7dea]
  • [mod] [mq] Make worker close terminal (use stop to allow restart) [b3643089]
  • [mod] [conns] Connection setup now fails on AUTH/SELECT/conn-setup-fn errors (previously silently ignored) [a61235fa]
  • [mod] Update Nippy v3.6 → v3.9 (see release notes) [ba56847b]
  • [mod] Update Redis commands (removes hgetf and hsetf) [d788da29]
  • [mod] [mq] Workers now need Redis TIME permission (allowed by default)

New

  • [new] [mq] Fence stale handler results and add lock-extend! [c0f59dc7]
  • [new] Add ~200 new Redis commands, incl. module commands (bf.*, ft.*, json.*, ts.*, etc.) [d788da29]
  • [new] [mq] Add worker :drain to await outstanding handlers [b3643089]

Fixes

  • [fix] [mq] Reserve handler capacity, isolate monitor failures, and coordinate worker lifecycle [b3643089]
  • [fix] [mq] Use Redis server time (needs TIME permission) [9823a424]
  • [fix] [mq] Honour :eoq-backoff-ms when idle [0c2803a7]
  • [fix] [pubsub] Prevent Listener probes dropping messages (@mbezjak) [689d8220]
  • [fix] [conns] Clean up sockets on failed connection initialization [a61235fa]
  • [fix] [#324] Remove unintended deprecation of hmget* and hgetall* [e04bc9d2]

v3.5.0 (2025-11-06)

This is a major maintenance release with many improvements. It includes a breaking change regarding Carmine's logging. Please report any unexpected problems to the Slack channel or GitHub.

A big thanks to all contributors and testers on this release! 🙏

- Peter Taoussanis

Since v3.4.1 (2024-05-30)

Changes

  • ➤ [mod] [BREAKING] Switch logging: Timbre -> Trove [ee75844c]
  • [mod] Drop support for Clojure 1.9 [70a60652]

New

  • [new] First publicly available experimental Carmine v4 core for early testers (currently undocumented)
  • [new] Update command spec [52c0cc0d]
  • [new] Now use Truss contextual exceptions for all errors [3c5ede77]
  • [new] [#322] Tests: use shared config, make benchmarks easier to tune (@kaizer113) [3a21e98b]
  • [new] [mq] Add experimental :reset-init-backoff? opt for debouncing, etc. [983fde98]
  • [new] [mq] [#315] [#316] Allow zero-thread workers (@adam-jijo-swym) [7e9adce1]
  • [new] [#313] Replace lua code with native command (@GabrielHVM) [ed109343]
  • [doc] [#314] Fix wiki typos (@mardukbp) [6c20de1d]
  • [doc] [#317] wcar docstring improvements [d4265aad]
  • [doc] Add migration info re: v3.3 MQ holding connections longer [8dc6fc14]

Fixes

  • None

v3.4.1 (2024-05-30)

Dep: Carmine is on Clojars.
Versioning: Carmine uses Break Versioning.

This is a hotfix release that should be non-breaking.

And as always please report any unexpected problems - thank you! 🙏

- Peter Taoussanis

Fixes since v3.4.0 (2024-05-28)

  • 9dd67207 [fix] [mq] [#305] Typo in final loop error handler
  • 81f58d80 [fix] [mq] Monitor :ndry-runs arg should be an int
  • 41e5ed34 [fix] [mq] Properly assume :success handler status by default

v3.4.0 (2024-05-28)

Dep: Carmine is on Clojars.
Versioning: Carmine uses Break Versioning.

This is a security and maintenance release that should be non-breaking for most users.

⚠️ It addresses a security vulnerability in Nippy's upstream compression library and is recommended for all existing users. Please review the relevant Nippy release info, and ensure adequate testing in your environment before updating production data.

And as always please report any unexpected problems - thank you! 🙏

- Peter Taoussanis

Changes since v3.3.2 (2023-10-24)

  • Updated to latest stable Nippy. This should be a non-breaking change for most users, but please ensure adequate testing in your environment before updating production data.

Fixes since v3.3.2 (2023-10-24)

  • 105cecb7 [fix] [mq] [#299] Fix queue-names and queues-clear-all!!! typos
  • 95c52aaa [fix] [mq] [#301] Document behaviour on handler errors
  • 9c8b9963 [fix] [#307] Fix Pub/Sub channel handlers masking pattern handlers
  • Fixed several typos in docs/README (@chage, @J0sueTM, @mohammedamarnah)

New since v3.3.2 (2023-10-24)

  • 12c4100d [new] Update Redis command spec (2024-05-27)
  • Several wiki and docstring improvements

v3.3.2 (2023-10-24)

📦 Available on Clojars, this project uses Break Versioning.

This is a minor hotfix release and should be a safe upgrade for users of v3.3.0.

Fixes since v3.3.1

  • be9d4cd1 [#289] [fix] Typo in previous hotfix

v3.3.0 (2023-10-12)

📦 Available on Clojars, this project uses Break Versioning.

This is a major feature release focused on significantly improving the performance and observability of Carmine's message queue.

There are BREAKING CHANGES for the message queue API, see migration info.

Please test carefully and report any unexpected problems, thank you! 🙏

Changes since v3.2.0

  • ⚠️ 1804ef97 [mod] [BREAKING] [#278] Carmine message queue API changes (see migration info)

Fixes since v3.2.0

  • 2e6722bf [fix] [#281 #279] parse-uri: only provide ACL params when non-empty (@frwdrik)
  • c68c995c [fix] [#283] Support new command.json spec format used for XTRIM, etc.

New since v3.2.0

  • Several major message queue architectural improvements
  • Several major message queue API improvements
  • c9c8d810 [new] Update commands to match latest commands.json spec
  • 19d97ebd [new] [#282] Add support for TLS URIs to URI parser
  • 5cfdbbbd [new] Add scan-keys util
  • 37f0030a [new] Add set-min-log-level! util
  • GraalVM compatibility is now tested during build

Other improvements since v3.3.0

  • Uses latest Nippy (v3.3.0)
  • Various internal improvements

v3.3.0-RC1 (2023-07-18)

📦 Available on Clojars

This is a major feature release which includes possible breaking changes for users of Carmine's message queue.

The main objective is to introduce a rewrite of Carmine's message queue that significantly improves queue performance and observability.

If you use Carmine's message queue:

  • Please see the 1804ef97 commit message for important details.
  • Please test this release carefully before deploying to production, and once deployed monitor for any unexpected behaviour.

My sincere apologies for the possible breaks. My hope is that:

  • Few users will actually be affected by these breaks.
  • If affected, migration should be simple.
  • Ultimately the changes will be positive - and something that all queue users can benefit from.

Changes since v3.2.0

  • ⚠️ 1804ef97 [mod] [BREAK] [#278] Merge work from message queue v2 branch (see linked commit message for details)

Fixes since v3.2.0

  • 2e6722bf [fix] [#281 #279] parse-uri: only provide ACL params when non-empty (@frwdrik)
  • c68c995c [fix] [#283] Support new command.json spec format used for XTRIM, etc.

New since v3.2.0

  • f79a6404 [new] Update commands to match latest commands.json spec
  • 19d97ebd [new] [#282] Add support for TLS URIs to URI parser
  • 5cfdbbbd [new] Add scan-keys util
  • 37f0030a [new] Add set-min-log-level! util
  • GraalVM compatibility is now tested during build

v3.2.0 (2022-12-03)

[com.taoensso/carmine "3.2.0"]

This is a major feature + maintenance release. It should be non-breaking.
See here for recommended steps when updating any Clojure/Script dependencies.

Changes since v3.1.0

  • [#279] [#257] Any username in conn-spec URI will now automatically be used for ACL in AUTH

Fixes since v3.1.0

  • Fix warning of parse var replacements (parse-long, parse-double)

New since v3.1.0

  • [#201] [#224] [#266] Improve wcar documentation, alias pool constructor in main ns
  • [#251] [#257] [#270] Add support for username (ACL) in AUTH (@lsevero @sumeet14)
  • Update to latest commands.json (from 2022-09-22)
  • [#259] [#261] Ring middleware: add :extend-on-read? option (@svdo)
  • [Message queue] Print extra debug info on invalid handler status

Other improvements since v3.1.0

  • [#264] Remove unnecessary reflection in Tundra (@frwdrik)
  • Stop using deprecated Encore vars
  • [#271] Refactor tests, fix flakey results
  • Update dependencies
  • Work underway on Carmine v4, which'll introduce support for RESP3, Redis Sentinel, Redis Cluster, and more.

v3.1.0 (2020-11-24)

[com.taoensso/carmine "3.1.0"]

This is a minor feature release. It should be non-breaking.

New since v3.0.0

  • [#244 #245] Message queue: add initial-backoff-ms option to enqueue (@st3fan)

v3.0.0 (2020-09-22)

[com.taoensso/carmine "3.0.0"]

This is a major feature + security release. It may be BREAKING.
See here for recommended steps when updating any Clojure/Script dependencies.

Changes since v2.20.0

  • [BREAKING] Bumped minimum Clojure version from v1.5 to v1.7.
  • [BREAKING] Bump Nippy to v3 for an important security fix. See here for details incl. necessary upgrade instructions for folks using Carmine's automatic de/serialization feature.
  • Bump Timbre to v5.

New since v2.20.0

  • Update to latest Redis commands spec.
  • Listeners (incl. Pub/Sub) significantly improved:
    • [#15] Allow conn-alive? check for listener connections
    • [#219] Try ping on socket timeouts for increased reliability (@ylgrgyq)
    • [#207] Publish connection and handler errors to handlers, enabling convenient reconnect logic (@aravindbaskaran)
    • [#207] Support optional ping-ms keep-alive for increased reliability (@aravindbaskaran)
    • Added parse-listener-msg util for more easily writing handler fns
    • Allow with-new-pubsub-listener to take a single direct handler-fn

Earlier releases

See here for earlier releases.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close