Explore idea of a notification server #151

Closed
opened 2007-09-13 22:34:57 +00:00 by toshio · 7 comments

{{{
#!rst

Pre-planning

  • Would a notification server add value to our architecture?
  • Does it simplify our other apps?
  • Would integrating it into our apps be intrusive or easy?
  • How to balance generality with specifics of our environment?

Use case

  1. User makes several changes in packagedb interface
  2. Packagedb makes change and constructs event messages of [who did it, type of event, message]
  3. Packagedb adds event messages to a queue messages are sent to the notification server
  4. Notification server receives message. Saves to its queue. Sends acknowledgement.
  5. Packagedb receives ack and removes message from queue.
  6. After timeout, notification server processes queue, constructing messages, saving logs, and updating RSS feeds.
    }}}
{{{ #!rst Pre-planning ============ * Would a notification server add value to our architecture? * Does it simplify our other apps? * Would integrating it into our apps be intrusive or easy? * How to balance generality with specifics of our environment? Use case ======== 1. User makes several changes in packagedb interface 2. Packagedb makes change and constructs event messages of [who did it, type of event, message] 3. Packagedb adds event messages to a queue messages are sent to the notification server 4. Notification server receives message. Saves to its queue. Sends acknowledgement. 5. Packagedb receives ack and removes message from queue. 6. After timeout, notification server processes queue, constructing messages, saving logs, and updating RSS feeds. }}}
Author

Talked to lmacken the other day and we think we might be able to do this using moksha's infrastructure. We'd pass messages using AMQP and moksha would take care of disbursing the information via email, RSS, etc.

Talked to lmacken the other day and we think we might be able to do this using moksha's infrastructure. We'd pass messages using AMQP and moksha would take care of disbursing the information via email, RSS, etc.
Author

See also:

https://fedorahosted.org/fedora-infrastructure/ticket/675

to see if we could handle that information as well. We'd need to be careful about security to do that, though.

See also: https://fedorahosted.org/fedora-infrastructure/ticket/675 to see if we could handle that information as well. We'd need to be careful about security to do that, though.

I think that setting up a Qpid AMQP broker would be a great start. From there, we can easily start sending various infrastructure events to it. Then, hooking up Moksha to it is going to be trivial, and will allow us to easily write "consumers" of these messages that can do interesting things, such as send email notifications, perform various jobs, etc.

I think that setting up a Qpid AMQP broker would be a great start. From there, we can easily start sending various infrastructure events to it. Then, hooking up Moksha to it is going to be trivial, and will allow us to easily write "consumers" of these messages that can do interesting things, such as send email notifications, perform various jobs, etc.
Author

Seems like qpidd setup is the first step in this.

Seems like qpidd setup is the first step in this.

This is actually 'up'ish now. The big part was me training myself on how it works. If we have test messages let me know because I can set it all up in staging fairly quickly.

This is actually 'up'ish now. The big part was me training myself on how it works. If we have test messages let me know because I can set it all up in staging fairly quickly.
Owner

Adding ralph here, as he is going to be working on this now.

We are looking at going with a 0mq setup.

Targeting for by Fedora 18, please adjust as you like.

Adding ralph here, as he is going to be working on this now. We are looking at going with a 0mq setup. Targeting for by Fedora 18, please adjust as you like.

0mq setup is along and moving. See #fedora-fedmsg and http://fedmsg.readthedocs.org/en/latest/status.html

Going to close this one :)

0mq setup is along and moving. See #fedora-fedmsg and http://fedmsg.readthedocs.org/en/latest/status.html Going to close this one :)
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#151
No description provided.