2.20.0 #648
Closed
michaelklishin
started this conversation in
General
2.20.0
#648
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Changes between Bunny 2.19.x and 2.20.0 (December 15, 2022)
New
Bunny::Channel
helpers for declaring quorum queues and streamsIntroduce a few helpers for quorum queues, streams, and durable client-named
queues in general, similar in spirit to
Bunny::Channel#temporary_queue
for temporary queues.
Bunny::Channel#quorum_queue
Bunny::Channel#quorum_queue
accepts a name (server-generated names are not supported)and a set of options arguments,
and declares a quorum queue.
Durability, exclusivity, and auto-delete properties will be ignored: it only makes
sense for quorum queues to be durable, non-exclusive and non-auto-delete since
they are all about data safety.
Bunny::Channel#stream
Bunny::Channel#stream
accepts a name (server-generated names are not supported)and a set of options arguments,
and declares a stream that Bunny
can use over AMQP 0-9-1 as if it was a replicated queue (without any stream-specific operations).
Durability, exclusivity, and auto-delete properties will be ignored: it only makes
sense for streams to be durable, non-exclusive and non-auto-delete since they are by definition a durable replicated data structure for non-transient
(or at least not entirely transient) data.
Bunny::Channel#durable_queue
Bunny::Channel#durable_queue
accepts a name (server-generated names are not supported),a queue type (one of:
Bunny::Queue::Types::QUORUM
,Bunny::Queue::Types::CLASSIC
,Bunny::Queue::Types::STREAM
), and a set of options arguments,and declares a quorum queue.
Durability, exclusivity, and auto-delete properties will be ignored by design, just
like
Bunny::Channel#temporary_queue
overrides them to declare transient queues.Bunny::Queue::Types
Bunny::Queue::Types
is a module with a few constants that represent currently availablequeue types:
Bunny::Queue::Types::QUORUM
Bunny::Queue::Types::CLASSIC
Bunny::Queue::Types::STREAM
Their names are self-explanatory.
Test Files Left Out of .gem File
Test files (specs) are no longer included into the
.gem
file.Contributed by Alexey @alexeyschepin Schepin.
GitHub issue: #621
This discussion was created from the release 2.20.0.
Beta Was this translation helpful? Give feedback.
All reactions