Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (24 sloc) 1.269 kb
c367bc1 @michaelklishin Migrate to Leiningen 2
authored
1 ## Changes between Langohr 1.0.0-beta1 and 1.0.0-beta2
2
ebd0f4c @michaelklishin Change message consumer fn signature per discussion in #3
authored
3 ### Breaking change: message handler signature has changed
4
5 Previously message handlers registered via `langohr.consumers/subscribe` had the following
6 signature:
7
8 ``` clojure
9 (fn [^QueueingConsumer$Delivery delivery ^AMQP$BasicProperties properties payload] ...)
10 ```
11
12 starting with beta2, it has changed to be more Clojure friendly
13
14 ``` clojure
15 (fn [^Channel ch metadata payload] ...)
16 ```
17
18 All message metadata (both envelope and message properties) are now passed in as a single Clojure
19 map that you can use destructuring on:
20
21 ``` clojure
22 (fn [^Channel ch {:keys [type content-type message-id correlation-id] :as metadata} payload] ...)
23 ```
24
25 In addition, in explicit acknowledgement mode, ack-ing and nack-ing messages got easier because
26 consumer channel is now passed in.
27
28 It is important to remember that sharing channels between threads that publish messages is **dangerous**
29 and should be avoided. Ack-ing, nack-ing and consuming messages with shared channels is usually acceptable.
30
31
32
741fd22 @michaelklishin Upgrade to RabbitMQ Java client 2.8.x
authored
33 ### RabbitMQ Java Client 2.8.x
34
35 RabbitMQ Java Client which Langohr is based on has been upgraded to version 2.8.1.
36
c367bc1 @michaelklishin Migrate to Leiningen 2
authored
37 ### Leiningen 2
38
39 Langohr now uses [Leiningen 2](https://github.com/technomancy/leiningen/wiki/Upgrading).
Something went wrong with that request. Please try again.