Friday, March 20, 2009
SOA and Cricket
I have two sons that are good at cricket and play for a local club. Most of the English-speaking world knows what Cricket is. For the Americans who may read this it is a bit like baseball. You use a bat and a ball and not much happens for long periods of time. Unlike baseball it can be played over several days for up to six hours a day. Much of my time has been involved in watching the game played by my sons but also watching the televised games between the Australian national team and the South African national team.
Progress is made slowly in cricket and it is often not clear whether you are winning until near the end of the game. The players need to stay focused on what they are trying to achieve and there are a whole range specialists (batters, bowlers and fieldsman) involved. SOA is much the same. It takes time. Since my last blog I can report some real progress from my organization but we have still only completed a small part of the journey. We need to stay focused on the desired SOA outcomes and we are gradually building a set of skills and relationships that are required to bring SOA to fruition.
I intend to prepare more blog postings shortly. The cricket season is over and the hot spell in South Australia has passed. Meanwhile my organization has completed a number of projects and has embarked on more which will advance its SOA so I have some content to provide and hopefully the motivation to provide it.
Friday, August 15, 2008
Understanding Enterprise SOA: Book Review
This book is not technical. It can be read by managers, salesmen or students and I think these were the intended audience. The explanations are easy to understand although I found them long-winded and overly simplistic on many occasions.
The authors attempted to explain procedural code as if it was museum artifact. This made me feel very old. It begs the questions whether the developers brought up on object-oriented development and SOA really need a detailed explanation of the concept of procedural code.
On the positive side this books tackles issues that others do not. It has a good non-technical discussion about security issues and there is a lot of discussion about human issues such as training, reorganization and corporate culture.
Oddly for a book written in 2006 I did not find any mention of Enterprise Service Bus (ESB) although it was clear the author was encouraging looking at off-the-shelf SOA management solutions as well as SOA security and routing software.
Eric Pulier in his preface is unbridled in his enthusiasm for SOA standards:
In a spectacular cycle of enlightened self-interest, every major company in the world has build on top of standards which have ushered a potentially exponential release of value from investments in information technology.Elsewhere in the book there are sufficient cautions to temper this enthusiasm. In particular the authors advise that much of SOA is still hard work and that there are no industry standard solutions to problems such as transaction processing and security.
There is a long and detailed case study running through the book. The authors do not hold back on the multitude of issues that confront an organization adoption SOA. Parts are realistic and even painful for those of us who have been through implementations of a difficult project or technology.
The book has a good history of technologies and standards. The authors make a good point about standards conforming to the Tipping Point model (see references below). This is when a standard reaches a certain level adoption that it suddenly becomes desirable for the majority of developers.
This is not a strong academic text. There are not many references to other information sources. The definitions are not clearly stated and often over-simplify the concepts. Concepts like Enterprise Architecture, Real-Time Computing and loose coupling are all not accurately defined.
"Loose-Coupling" is described but not adequately explained. The authors give the impression that loose-coupling is only about where you can locate services.
Web services, in contrast are loosely coupled. Once a piece of software has been exposed as a web service it is simple to move it to another computer.This is an important aspect of coupling but is not the whole story as I have identified on previous postings.
The book focuses on synchronous services rather than asynchronous services. This is unfortunate as other texts such as Thomas Erl or Krafzig, Banke & Slama seem to advocate asynchronous services.
The book addresses the Subject of Enterprise Architecture again loosely defined. At one point the book states
There is no institute providing credentials for enterprise architects.
I'll give the authors the benefit of doubt. Perhaps in 2006 there were not the credentials around but these days there are a number of places to get recognized credentials as an IT Architect. The Microsoft Certified Architect programs spring to mind although I will not vouch for the content of these programs.
The authors see SOA as a method for replacing parts of the Data Warehouse. I was not particularly convinced by this. This was an interesting subject which I had not seen before. I think there is benefit in moving the content of SOA logging to the data warehouse but I was not convinced that SOA radically changes the typical data warehouse ETL process.
This is not a book with detail examples of SOAP and WSDL. It will not explain how to code or build services. You will not find much detail on WS-* here either.
Contracts and Service Level Agreements (SLAs) are described in the book. The authors also introduce the Business Level Agreement (BLA). This is agreement to monitor business conditions such as an inventory pile-up causing $100k per minute of cost.
The book is well illustrated with copious diagrams and notes attached to the diagrams. I found myself skipping past a lot of the diagrams because they did not seem to be explaining anything particularly special.
I congratulate the authors for including detail about setting up training programs in the book and explaining how the resources are brought in to deal with the adoption of SOA. This is missing from many other texts and is an important issue today.
The authors emphasize that SOA is an enterprise approach. Under SOA, IT departments put in place infrastructure to serve the enterprise rather than just serving particular applications.
I would recommend other books before this one for most audiences. The simplistic and at times pedantic prose would make it hard to recommend to an IT professional. Nevertheless there are some well-made observations in this book that you are not likely to find elsewhere.
References
Understanding Enterprise SOA, Eric Pulier and Hugh Taylor with forward by Paul Gaffney, Manning, 2006
The Tipping Point: How Little Things Can Make a Big Difference (ISBN 0-316-31696-2) is a book by Malcolm Gladwell, first published by Little Brown in 2000.
Sunday, August 3, 2008
Will BPM be the Savior of SOA?
BPM (see note below) has been with us since at least the 1980s. It used to a paper process of writing up the process and then getting a team of programmers to build it, then implementing it on usually a big computer that could handle it and then have the computer operators monitoring it.
In the 1990s Business Process Reengineering (BPR) was an approach which changed an organizational process. It involved process diagrams, IT change and business change.
The excitement with BPM is that some of the leg work involved in actually building systems can be removed if the components of the business process are already established. In this case the components are Web Services enabled through an SOA.
What interests me about this is that some of the concepts behind BPM are a lot easier to explain to the business than SOA. You can get out the Lego blocks and explain the benefits of agility until you are blue in the face but you are still only talking in analogies and expecting the business to take a leap of faith. If you show the business a diagram of one of their business processes and then tell the business the cost of changing that business process then that makes sense in terms the business understands. Of course there is a significant investment in infrastructure, tools and services to establish before you get to that point. It is this significant investment that the IT executive wants to sell. If you are pushing a plan to buy infrastructure, tools and establish services then the plan will make more business sense if the objective is BPM rather than SOA.
I think Software AG understands this and that is why they are giving out "BPM Basics for Dummies" and not "SOA Basics for Dummies". I think the business will get behind BPM before they will embrace SOA. We may see more push for BPM to business executives and SOA may take a back seat. The IT department however knows it needs SOA to get BPM to work. That is just how it meets the business goal of BPM.
Note:
BPM stands for Business Process Management, but you would excused for thinking it stood for Business Process Modeling. The "Management" implies that we are doing a lot more than mapping out the processes. The "Management" moves beyond documenting the processes to making them happen and monitoring their effectiveness.
This is not to be confused with BPMN (Business Process Modeling Notation) where the "M" stands for "Modeling". BPMN however can move beyond an aesthetic model to an operational system by converting it to BPEL.
References:
http://www.ebizq.net/hot_topics/bpm/
http://www.bpmn.org/Documents/Mapping%20BPMN%20to%20BPEL%20Example.pdf
http://en.wikipedia.org/wiki/Business_process_reengineering
Kiran Garimella, Michael Lees and Bruce Williams, "BPM Basics for Dummies (Software AG Special Edition)", Wiley Publishing Inc. 2008.
Monday, July 21, 2008
Laws of Software Development
Pulier's rule of reuse:
A programmer will look at another programmer's output, no matter how brilliant and declare it garbage
The best law's and rules are named by others who admire the author's work, but this one seemed pretty worthy to me. This got me reminiscing about some laws of software development that perhaps had the same rigour as Newton's Laws, Boyle's Law or Hooke's Law.
The rules I have admired during my career are:
Brooks's Law:
adding manpower to a late software project makes it later
Hofstadter's Law:
It always takes longer than you expect, even when you take Hofstadter's Law into account.
Codd's Rules of relational database management systems which I won't quote here because there are 13 of them.
Moore's Law:
The number of transistors that can be inexpensively placed on an integrated circuit is increasing exponentially, doubling approximately every two years.
This has a number of applications outside of transistors such as processing speed, memory and disk capacity.
Clarke's 3rd Law:
Any sufficiently advanced technology is indistinguishable from magic.
The reason I class this as a software development Law is that it points out the futility of trying to explain the technical details of software to Business users. If a technical decision does not have any business impact then it may as well be magic.
I thought I would check what other software development Laws there are on the net. Here is a good sample from some useful sources listed in the Bibliography below:
Amdahl’s Law
The speedup gained from running a program on a parallel computer is greatly limited by the fraction of that program that can’t be parallelized.
Asimov's laws (Yes its SF but one day a software developer might have to follow them):
- A robot may not injure a human being or, through inaction, allow a human being to come to harm.
- A robot must obey orders given to it by human beings, except where such orders would conflict with the First Law.
- A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
Atwood’s Law:
Any application that can be written in JavaScript, will eventually be written in JavaScript
Bye's First Law of Model Railroading
Anytime you wish to demonstrate something, the number of faults is proportional to the number of viewers.
Clarke's 1st Law:
When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
Clarke's 2nd Law:
The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
Clarke's 4th Law (He's not often credited with this one):
For every expert there is an equal and opposite expert.
Any piece of software reflects the organizational structure that produced it.
You cannot apply a technological solution to a sociological problem.
Greenspun's Tenth Rule of Programming (There actually are no rules 1 to 9)
Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp
This can also be worded “Those who do not understand Lisp are doomed to reinvent it.”
Gustafson's Law (also known as Gustafson-Barsis' law)
Any sufficiently large problem can be efficiently parallelized
Kerckhoffs' law on secure cryptography
A cryptosystem should be secure even if everything about the system, except the key, is public knowledge
Lehmann's Laws
- Systems that are used must change or automatically become less useful
- Through changes the structure of a system becomes ever more complex and more resources are needed to simplify it
Linus's law — named for Linus Torvalds,
given enough eyeballs, all bugs are shallow
Lubarsky's law of Cybernetic Entomology:
There is always one more bug.
McLuhan's Law:
If it works it's obsolete.
In communications and network theory, states that the value of a system grows as approximately the square of the number of users of the system.
Murphy's Law
If anything can go wrong, it will.
Occam's Razor:
There are many wordings for Occam's razor and debate about how it is interpreted but from software development I think the best wording is "The simplest solution is usually the best". This is very nearly the same as the KISS principal "Keep it simple stupid".
Putt’s Law:
Technology is dominated by two types of people: those who understand what they do not manage, and those who manage what they do not understand.
Sturgeon's Revelation (sometimes referred to as his second law):
Ninety percent of everything is crap
Weinberg’s Law:
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
Software gets slower faster than hardware gets faster.
Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.
Here are still more great laws from Joey DeVilla's Blog posting.
| The Law | Who Said It | What it Says |
|---|---|---|
| Ellison’s Law of Cryptography and Usability | Carl Ellison | The user base for strong cryptography declines by half with every additional keystroke or mouse click required to make it work. |
| Ellison’s Law of Data | Larry Ellison | Once the business data have been centralized and integrated, the value of the database is greater than the sum of the preexisting parts. |
| Flon’s Axiom | Lawrence Flon | There does not now, nor will there ever, exist a programming language in which it is the least bit hard to write bad programs. |
| Gilder’s Law | George Gilder | Bandwidth grows at least three times faster than computer power. |
| Grosch’s Law | Herb Grosch | The cost of computing systems increases as the square root of the computational power of the systems. |
| Hartree’s Law | Douglas Hartree | Whatever the state of a project, the time a project-leader will estimate for completion is constant. |
| Heisenbug Uncertainty Principle (restated) | Jim Gray | Most production software bugs are soft: they go away when you look at them. |
| Hoare’s Law of Large Programs | C. A. R. Hoare | Inside every large problem is a small problem struggling to get out. |
| Jakob’s Law of the Internet User Experience | Jakob Nielsen | Users spend most of their time on other sites. This means that users prefer your site to work the same way as all the other sites they already know. |
| Joy’s Law | Bill Joy | smart(employees) = log(employees), or “No matter who you are, most of the smartest people work for someone else.” |
| Lister’s Law | Timothy Lister | People under time pressure don’t think faster. |
| Nathan’s First Law | Nathan Myhrvold | Software is a gas; it expands to fill its container. |
| Ninety-ninety Law | Tom Cargill | The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. |
| Pesticide Paradox | Bruce Beizer | Every method you use to prevent or find bugs leaves a residue of subtler bugs against which those methods are ineffectual. |
| Reed’s Law | David P. Reed | The utility of large networks, particularly social networks, scales exponentially with the size of the network. |
| Sixty-sixty Rule | Robert Glass | Sixty percent of software’s dollar is spent on maintenance, and sixty percent of that maintenance is enhancement. |
| Spector’s Law | Lincoln Spector | The time it takes your favorite application to complete a given task doubles with each new revision. |
| Spafford’s Adoption Rule | George Spafford | For just about any technology, be it an operating system, application or network, when a sufficient level of adoption is reached, that technology then becomes a threat vector. |
Some unattributed "laws" that are worth mentioning:
- Build a system that even a fool can use, and only a fool would want to use it.
- Any program over 100 instructions can be simplified by 3 instructions (without losing any functionality).
- Any idiot can learn to use computers, and many do
- There’s never time to do it right in the first place, but there’s always time to do it over when it doesn’t work.
This posting started with Pulier's Law: "A programmer will look at another programmer's output, no matter how brilliant and declare it garbage". At the risk of repeating Pulier's conceit of naming law about himself I propose:
Kimber's Corollary:
No amount of documentation is ever sufficient to completely understand a system
Bibliography
http://en.wikipedia.org/wiki/Adages_named_after_people
"Moore's Law is Dead", http://www.techworld.com/opsys/news/index.cfm?newsid=3477
http://en.wikipedia.org/wiki/Change_management_(engineering), This includes the reference to Lehmann's Laws siting Hinley, D.S. (1996). Software evolution management: a process-oriented perspective. Information and Software Technology, 38, 723-730
http://en.wikipedia.org/wiki/Moore
http://en.wikipedia.org/wiki/Occam
http://www.webopedia.com/TERM/C/Codds_Rules.html
Joey de Villa, http://globalnerdy.com/2007/07/18/laws-of-software-development/
Phil Haack, 19 Eponymous Laws Of Software Development, http://haacked.com/archive/2007/07/17/the-eponymous-laws-of-software-development.aspx
Eric Pulier and Hugh Taylor, "Understanding Enterprise SOA", Manning Publications, 2006
Saturday, July 19, 2008
Book Review: J2EE and Weblogic
"J2EE Web Services on BEA Weblogic" was published as part of the Hewlett-Packard Professional Book Series. While the Weblogic content the descriptions of some of the management functions of HP Openview were a bit alienating as I have not used this product. However it did also talk about some useful utilities and open source products that were not provided by either BEA or HP.
While the description of the tools were fairly high level and probably could be translated into similar functions in other suites I do not expect this book attract users of other SOA platforms suites.
The book style is fairly easy to read with some good diagrams and examples. The SOA standards and principles are covered well with a focus on the WS-*, SOAP and WSDL standards.
The basics of J2EE and EJBs are explained and some fundamentals of the Weblogic platform. This is not an evangelistic book about SOA or Web Services but goes into a bit about the technology of how to bring it about. The SOA benefits are there but the SOA story gets a bit lost amongst the instruction on how to use the BEA tools.
Some of the material reads like BEA marketing literature. I would have liked more practical tips on what to use and what not to use. In a book like this we need information that we can't glean from the manuals. This provided the high level overview with out some of the more practical "dos and don'ts".
There is good information on versioning and a good section on evaluating WS management tools. Also the book provides some practical approaches to performance issues.
This book has limited readership and will date quickly. Your best technical advice will always come from the product manuals but this book explains a bit about the suite is used as a whole. Published in 2004 this book is nearing its "use by" date but there is still some relevance to what it describes. Be quick though, with the acquisition of BEA by Oracle we can expect some changes to the BEA product suite.
Saturday, April 26, 2008
Lego, Carrots and Coleslaw
I have discussed some of the advantages and disadvantages of the lego metaphor in my earlier posting Lego and SOA. It has also made an appearance in some videos I have seen and conferences I have attended.
Web Services versus the REST
The decision to use one technique or another is not made very often. Often such a decision is made in series of smaller decisions over a period time. For instance REST may be chosen to be used for some aspect of some project several times over before it assumes the role of accepted practice in an organisation. Often these decisions are not made in a formal way.
This week my organisation had one of those smaller decision points. The solution architect proposed that we use REST or SOAP Web Services for our services. To define the solution architecture fully we needed to decide which one we going to use.
The case for REST was:
- There would be less processing overhead
- It would a less heavyweight solution as far as programming effort
- Easy for service consumers to understand
The case for SOAP Web Services was:
- The project was already using SOAP elsewhere
- Web Services was a standard and REST was a "architectural style"
- Our partners were more likely to adopt Web Services than REST
- The explicit definition of service contracts in WSDL would be an advantage
- Can deal in standard fashion with reliability and transaction issues
- Better for modelling processes (verbs rather than just nouns)
Other points that were considered
- Our organisation is not particularly experience with either SOAP or REST
- We had used other "service" approaches (neither SOAP or REST in the past)
The decision is not a simply a decision between one or the other. An organisation can adopt neither, both for different circumstances or both in combination. Zapthink advises
… the debate about Web Services and REST is as pointless as arguing whether a
hammer or a screwdriver is a better tool.
W3C discuss a scheme for reconciling the two so that SOAP-based services can be used in RESTful ways.
The winner in this case discussed above was Web Services. This does not commit the organisation to using these technique in the future however this decision will influence future decisions to adopt Web Services in favour of REST. The "horses for courses" approach of choosing the best approach for the application will become less likely as the organisation developers expertise and confidence with Web Services.
Notes:
There is some argument about whether REST is Web Services or not. The use of Web Services Description Language (WSDL) in conjunction with SOAP and not REST suggests that SOAP and Web Services are inseparable. I will use Web Services (capital "W" and capital "S") to describe SOAP based services. Many commentators advocate using "web services" as a description of services developed in REST.
Some REST (Representational State Transfer) include
Daniel Rubio
http://www.webforefront.com/archives/2005/05/rest_-_represen.html
Joe Gregorio, December 01, 2004
http://www.xml.com/pub/a/2004/12/01/restful-web.html
Mark Baker et al
http://rest.blueoxen.net/cgi-bin/wiki.pl?FrontPage