An incredibly overcomplicated system that breaks, stomps on, and further soils the concept of humane interface.
I want to delete records from an Enterprise Data Cloud. The logical process for deletion is as follows:
- Figure out which table you want to delete from.
- Select all data associated with those records--everything.
- Partition the total number of records, knowing that the message you are about to send can't be over size X.
- XML-ify the message, embedding all kinds of random-character identifiers that you should just know.
- Put all messages in a QueueQueue to throttle the number of messages sent at any given time.
- Send each message to a message queue, no more than five at a time.
- Monitor the immediate error queue to know when an immediate error has occurred.
- Monitor a reply queue to know when each message has completed.
- Parse each reply to understand how many records out of each message were deleted.
- Re-combine all results into one statement for a user.
- Rinse. Repeat.
If you are asking yourself "Why not just delete the records from the database?," you are not an architect. All enterprise architecture depends on properly implemented Rube Goldberg Machines in order to justify calling it enterprise.
i have also found another real-world(?) example of the RGM.