Skip to content

HTTPS clone URL

Subversion checkout URL

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