Skip to content

Commit

Permalink
Add RabbitMQ ADR.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon authored and hackartisan committed Jan 30, 2020
1 parent 0a57879 commit 6115a68
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions architecture-decisions/0003-synchronization-via-rabbitmq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 3. Synchronization via RabbitMQ

Date: Archaeological

## Status

Accepted

## Context

We want Pomegranate to be a separate application from Figgy, but need some way
for Figgy to tell Pomegranate about new resources so that when something is
marked Complete in Figgy or taken down that it's reflected in Pomegranate.

## Decision

Figgy will send create/update/delete messages to a fanout RabbitMQ Exchange.
Pomegranate will register a durable queue which listens to that exchange and
process messages using [Sneakers](https://github.com/jondot/sneakers).

## Consequences

* If Sneakers workers stop processing, then new documents don't make it in to
Pomegranate and we have to perform a reindex.

* We have to monitor the status of our queues to make sure things are working.

0 comments on commit 6115a68

Please sign in to comment.