Tuesday, July 27, 2010

2-Phase Parsing

    Meaning: Once receiving an alert, parse it first and then send another alert back (in same or different format) to the parser to parse it using different rules.

    Why Need It?

  1. To keep things simpler and make the maintenance easier.

    The first parsing usually is to parse the email message body to drop off false alerts and send out valid information out. The second parsing is the regular parsing to retrieve the membership groups and take different actions based on that. Processing alerts is divided in 2 phases and they are independent of each other, which make the maintenance easier.

  2. To achieve unique functionality.

    You cannot accomplish the same functionality by parsing alerts only once. This is because the action parsing is based only on email subject. Scripting will not change this. Using 2-phase parsing , false alerts will be eliminated first and different actions will be set later on for different membership types.

No comments:

Post a Comment