For critical OLTP applications system wide down time is absolutely no-no. Also handling the Software faults (Especially bugs in underdevelopment application), How to allow user to perform UAT while they are working on their routine operations?
Common solution that almost every social web application uses, pilot releases and let only selected region of the user test the system. But can that be possible in database heavy operational systems? Such as Banking, Supply chain management, Income tax returns, accounting where database is heart of the business and let you not miss even single byte of data.
Here is our small approach which we used for Supply chain management system and rolled out across all India seamlessly...
This we did on Oracle database (And it can be extended to almost all the databases with littlie changes – with equivalent to Oracle schema concept).
So here it is...
1. You have all the tables created in single set of schemas, which will hold only data tables and no operational logic! Of course any table level constraints and triggers will go in this set of schemas only.
2. Then you have two set of schemas which will have only code (operational logic) and application config (static table which act as app config settings).
a. One set of schemas have say Version 1.0 and another set of schemas have version 2.0
b. With every new release you replace the old most versions.
Say Version 3.0 -> Version 1.0 & Version 4.0 -> Version 2.0 and so on...
3. This work well as you will always have one older (Ideally stable) and one new version (may have some issue and should be tested).
4. Allow only set of users to go over new versions and evaluate it. Even if there are error/faults they will have choice to go back to old stable version and admin will have window to fix the issues without affecting complete user base.
5. Most valuable feature is you have all the data at one place, no matter which application you are using. So that gives you portability across versions.
Challenges:
1. No –ve changes (removal of column/table or change in data types of column) are not allowed as old version might be using it.
2. Be careful while using “INSERT INTO <<TABLE>> SELECT *” kind of SQLs. Shouldn’t be used with * anyways!
3. Complex setup as you need complex synonym and grant network across data and operation code schemas.
4. Eventually complex release process.
5. Be careful when you make design/deployment changes.
With proper deployment and design processes in place this can be achieved easily. This defiantly helps in fault management and reducing system wide down times.
Comments
Post a Comment