nulogy_message_bus_producer 5.0.5 → 5.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -2
- data/lib/nulogy_message_bus_producer/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e3ece660ff252d9d3610d2d4abc7e27a5d882222fa58c6f792a097f31edf5ca
|
4
|
+
data.tar.gz: 4852cae81887c925cbcefde6495674993b4bf127e0853c780611d5acf0188fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 355fe9b309214605a2ea5161bdcd14ead94f969516417f19a10a03ea91bff81eae5d3f9f68386d3a350994f2abec278f50912f01c927ed46881be5cd478e6c5e
|
7
|
+
data.tar.gz: 387c615b686e2b72e2d7f7f55a10ba033c2c46aa472b70828b675d099d50f61bbf3589b56055628e639ece34398434a3d7d60f9d575bd5c8056de51d295d8a2f
|
data/README.md
CHANGED
@@ -27,6 +27,8 @@ There are two ways to create subscriptions:
|
|
27
27
|
|
28
28
|
#### Configured
|
29
29
|
|
30
|
+
![Configured subscriptions](docs/message-bus-configured-subscriptions.png)
|
31
|
+
|
30
32
|
Subscriptions provided by configuration in the producer app:
|
31
33
|
|
32
34
|
```ruby
|
@@ -50,6 +52,8 @@ end
|
|
50
52
|
|
51
53
|
#### Self-Serve (soft-deprecated)
|
52
54
|
|
55
|
+
![Self-serve subscriptions](docs/message-bus-self-serve-subscriptions.png)
|
56
|
+
|
53
57
|
You create these subscriptions via the public GraphQL API. For testing, the [Insomnia](https://insomnia.rest/) client
|
54
58
|
is highly recommended.
|
55
59
|
|
@@ -271,9 +275,52 @@ rake db:setup
|
|
271
275
|
rake
|
272
276
|
```
|
273
277
|
|
278
|
+
# Buildkite
|
279
|
+
|
280
|
+
[![Build status](https://badge.buildkite.com/d7d8d8869573938a831b6942ea3a6d4b9b354edbb6822166a3.svg?branch=main)](https://buildkite.com/nulogy-corp/message-bus)
|
281
|
+
|
282
|
+
Our CI pipeline will run all tests, linting, and security audits for *BOTH* gems.
|
283
|
+
|
284
|
+
To see that a new build "works", you can deploy to the test synthetic apps.
|
285
|
+
The synthetic producer app generates a synthetic change to the database that is picked up by the Message Bus, and is consumed by the synthetic consumer app.
|
286
|
+
|
287
|
+
## Testing Synthetic apps
|
288
|
+
|
289
|
+
For testing, the AWS account is the `message-bus-test` profile.
|
290
|
+
The synthetic apps are running in ECS under: ECS > Clusters > message-bus-us-east-1-cluster > Services > message-bus-us-east-1-cluster
|
291
|
+
|
292
|
+
### Test Deployment
|
293
|
+
|
294
|
+
In Buildkite, you can use the Deploy job to deploy to the test environments.
|
295
|
+
Note: Often the "Wait until deployment completes" job fails. The following script will output the git SHA that is deployed:
|
296
|
+
|
297
|
+
```
|
298
|
+
message-bus> aws sso login
|
299
|
+
message-bus> ./scripts/whats_deployed.sh
|
300
|
+
83ac09ec33c0597d6ec65c4631140d04213d968d
|
301
|
+
```
|
302
|
+
|
303
|
+
To run the script, you need the `aws` CLI installed as well as `jq`.
|
304
|
+
|
305
|
+
### Confirm Test Synthetic apps work after deployment
|
306
|
+
|
307
|
+
1. Log into the AWS console for the `nulogy-message-bus-test` account.
|
308
|
+
2. Go to Cloudwatch
|
309
|
+
3. Use the log group for the synthetic consumer app: `message-bus-us-east-1-message-bus-consumer`
|
310
|
+
4. Select "All events"
|
311
|
+
5. Filter to a recent time (say, last 1 hour) and use the query: `{ $.event = "message_processed" && $.result = "success" }`
|
312
|
+
This will display the logs generated when a message is successfully processed.
|
313
|
+
6. In the `Message` field, the timestamps should be roughly 30 seconds apart, with only a gap during deployment.
|
314
|
+
The synthetic producer app generates synthetic events every 30 seconds, so we are confirming those are being consumed.
|
315
|
+
|
274
316
|
# Gem Releases
|
275
317
|
|
276
|
-
|
318
|
+
This gem is hosted on [RubyGems](https://rubygems.org/gems/nulogy_message_bus_producer).
|
319
|
+
|
320
|
+
You must be listed as a gem owner to release a new version.
|
321
|
+
You can request RubyGem access in the #message-bus Slack channel.
|
322
|
+
|
323
|
+
## Release steps
|
277
324
|
|
278
325
|
* Commit a version bump
|
279
326
|
* Update `lib/nulogy_message_bus_producer/version.rb`
|
@@ -282,5 +329,5 @@ You must be listed as a gem owner [on rubygems](https://rubygems.org/gems/nulogy
|
|
282
329
|
* Update the CHANGELOG
|
283
330
|
* Run `cd heartbeat_app/backend`
|
284
331
|
* Run `bundle`
|
285
|
-
* Merge your changes to `
|
332
|
+
* Merge your changes to `main`
|
286
333
|
* Run `bundle exec rake release`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nulogy_message_bus_producer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nulogy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0
|
19
|
+
version: 2.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -340,7 +340,7 @@ files:
|
|
340
340
|
- spec/support/sql_helpers.rb
|
341
341
|
- spec/support/subscription_helpers.rb
|
342
342
|
- spec/support/test_graphql_schema.rb
|
343
|
-
homepage: https://github.com/nulogy/message-bus/tree/
|
343
|
+
homepage: https://github.com/nulogy/message-bus/tree/main/gems/nulogy_message_bus_producer
|
344
344
|
licenses: []
|
345
345
|
metadata: {}
|
346
346
|
post_install_message:
|
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
358
|
- !ruby/object:Gem::Version
|
359
359
|
version: '0'
|
360
360
|
requirements: []
|
361
|
-
rubygems_version: 3.2.
|
361
|
+
rubygems_version: 3.2.22
|
362
362
|
signing_key:
|
363
363
|
specification_version: 4
|
364
364
|
summary: Nulogy's code for producing to the Message Bus
|