govuk_message_queue_consumer 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -4
- data/lib/govuk_message_queue_consumer/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6896165d9545e9d296e8b36b4561691c944de5c
|
4
|
+
data.tar.gz: 6d91a915165ae01078054f31db28cd8849a979ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c98adccdb026761e1729efcf18a6eabd4bf9e913bf596e1eb58f39c1eb56cbeb2af4054a5999dfece569eec33387c38ec3f82a0c4a2df37cfc572207ed77d26
|
7
|
+
data.tar.gz: d0a55bf4526a698a2137f09aa93ae2e88e82f32e931dc4693d9160e79adb84d88a5f151bc5ce7649e2d662c93731950831a4fd21625e558d1f405daea8f58f39
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,6 +11,8 @@ notified of changes in content.
|
|
11
11
|
|
12
12
|
For detailed documentation, check out the [gem documentation on rubydoc.info](http://www.rubydoc.info/gems/govuk_message_queue_consumer/GovukMessageQueueConsumer/Consumer#initialize-instance_method).
|
13
13
|
|
14
|
+
This gem is used by [Rummager](https://github.com/alphagov/rummager).
|
15
|
+
|
14
16
|
## Nomenclature
|
15
17
|
|
16
18
|
![A graph showing the message flow](docs/graph.png)
|
@@ -21,8 +23,7 @@ For detailed documentation, check out the [gem documentation on rubydoc.info](ht
|
|
21
23
|
_headers_. In the case of the publishing-api the payload is a
|
22
24
|
[content item](https://github.com/alphagov/govuk-content-schemas).
|
23
25
|
- **Consumer**: the app that receives the messages and does something with them.
|
24
|
-
On GOV.UK,
|
25
|
-
and [content-register](https://github.com/alphagov/content-register).
|
26
|
+
On GOV.UK, this is [email-alert-service](https://github.com/alphagov/email-alert-service).
|
26
27
|
- **Exchange**: in RabbitMQ's model, producers send messages to an _exchange_.
|
27
28
|
Consumers can create a Queue that listens to the exchange, instead of
|
28
29
|
subscribing to the exchange directly. This is done so that the queue can buffer
|
@@ -47,8 +48,6 @@ incremented.
|
|
47
48
|
|
48
49
|
## Usage
|
49
50
|
|
50
|
-
For an example on how to implement a message queue consumer, see [alphagov/panopticon#307](https://github.com/alphagov/panopticon/pull/307/files).
|
51
|
-
|
52
51
|
Add the gem:
|
53
52
|
|
54
53
|
```ruby
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_message_queue_consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -125,4 +125,3 @@ signing_key:
|
|
125
125
|
specification_version: 4
|
126
126
|
summary: AMQP message queue consumption with GOV.UK conventions
|
127
127
|
test_files: []
|
128
|
-
has_rdoc:
|