-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from jeremycline/document-consumer
Document the FMN consumer package
- Loading branch information
Showing
5 changed files
with
239 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
""" | ||
The FMN consumer package contains all the service that process the incoming | ||
`fedmsg`_ messages. The messages are processed in three steps: | ||
1. The `fedmsg consumer`_ defined in :mod:`fmn.consumer.consumer` subscribes | ||
to every fedmsg topic (``*``). It places these messages into a RabbitMQ | ||
message queue called ``worker``. This message broker provides message | ||
durability for FMN as it processes the messages. | ||
2. One or more :mod:`fmn.consumer.worker` processes are started and consume | ||
messages from the ``worker`` message queue. These worker processes take | ||
each message and determine who should receive notifications based on their | ||
message filters. It then records this information in the message and | ||
publishes the message to the ``backend`` queue. | ||
3. A single :mod:`fmn.consumer.backend` process is run and is responsible for | ||
sending the messages to users via IRC, email, etc. It consumes the messages | ||
from the ``backend`` queue and dispatches them. It defines a backend interface | ||
and new backends can be added to allow for new message mediums. | ||
""" | ||
from .consumer import FMNConsumer # noqa | ||
from .producer import ConfirmationProducer # noqa | ||
from .producer import DigestProducer # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters