Re: Transaction Oriented Architecture (TOA)
- From: Thomas Gagne <tgagne@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 13:10:18 -0500
If your application's SQL was already referencing the account table it will need to be modified to reference the view instead--or you'll have to rename the account table and replace it with a view--which is certain to mess up other account table dependents.
Additionally, there's no transaction history on SELECT statements (unless you wanted to enable security auditing.. but that's nasty). How do you make sure the requesting user has permission to see the view? How do you record their query? How do you make sure they only see accounts their allowed to see? Those features aren't present in views 'cause views don't have parameters (like user ID etc--unless you've added application user IDs to the database).
In our system's we'd have something like p_account(@sessionKey, @accountKey). The procedure would be able to verify permissions through the sessionKey (find the user, which party they belong to, which accounts belong to them, and if they have READ access), can record the transaction (sessionKey, transaction type, accountNumber), AND bury its implementation behind its interface (procedure name and parameters) so that changes to the account table, security, or transaction logging won't affect application code.
Implementing our system with a TOA/TOP design has afforded us unusual responsiveness to fixes and enhancements--many able to wind their way through development, QA, and into production within hours of the request--with minimal changes to applications. The fewer changes we make the faster and more confidently we can move to production.
--
Visit <http://blogs.instreamfinancial.com/anything.php> to read my rants on technology and the finance industry.
.
- Follow-Ups:
- Re: Transaction Oriented Architecture (TOA)
- From: topmind
- Re: Transaction Oriented Architecture (TOA)
- References:
- Transaction Oriented Architecture (TOA)
- From: Thomas Gagne
- Re: Transaction Oriented Architecture (TOA)
- From: H. S. Lahman
- Re: Transaction Oriented Architecture (TOA)
- From: topmind
- Re: Transaction Oriented Architecture (TOA)
- From: Thomas Gagne
- Re: Transaction Oriented Architecture (TOA)
- From: topmind
- Re: Transaction Oriented Architecture (TOA)
- From: Thomas Gagne
- Re: Transaction Oriented Architecture (TOA)
- From: topmind
- Re: Transaction Oriented Architecture (TOA)
- From: Thomas Gagne
- Re: Transaction Oriented Architecture (TOA)
- From: topmind
- Transaction Oriented Architecture (TOA)
- Prev by Date: Re: Transaction Oriented Architecture (TOA)
- Next by Date: Isolatable Concerns (was: Transaction Oriented Architecture...)
- Previous by thread: Re: Transaction Oriented Architecture (TOA)
- Next by thread: Re: Transaction Oriented Architecture (TOA)
- Index(es):
Relevant Pages
|