Design Patterns

Design Patterns

Last week I received a heavy parcel through the post from Amazon containing Thomas Erls new book SOA Design Patterns.  I have been interested in design patterns for many years and still regularly refer to my copy of the gang of four (Design Patterns: Elements of Reusable Object-Oriented Software).  For those of you unaware of them, patterns provide a proven solution to a problem.  The gang of four book identifies four essential elements in a pattern (from section 1.1 What is a Design Pattern?).

  1. A pattern name that extends our vocabularly when talking with colleagues, witness the common use of facade as a shorthand for the design principles of the facade pattern.
  2. A problem that is addressed by the pattern.
  3. A solution that describes an abstract design to solve the problem.
  4. The consequences of applying the pattern, its results and its impacts both positive and negative.

It is worth noting that patterns are not created, they are discovered.  An important aspect of a pattern is that it should have been used in more than one solution.  The gang of four identified and documented 23 design patterns focused on object oriented languages.  The Thomas Erl book focuses as the name suggests on service oriented patterns.  Some of these patterns are service oriented forms of the gang of four patterns.  For example the service facade is an example of the facade pattern.  However Thomas explains how the service facade works in a a SOA and gives detailed explanations of its trade offs and benefits all closely related to SOA, providing a lot of added value even to people already familiar with the facade pattern.  The facade pattern in the gang of four covers 9 pages, in Thomas’ book it covers 12 pages but also includes a case study and is focused purely on SOA.

Think of the SOA Design Patterns as a cookbook of possibilities.  They cover lots of different patterns, many of them contributed by other SOA gurus such as Oracles David Chappell.  Use it as a reference book to see if there is a proven design approach that can solve some of your problems.  Remember that is a guide to good design, not a guarantor.

Well worth adding to your library!

Comments:

Post a Comment:
Comments are closed for this entry.
About

Musings on Fusion Middleware and SOA Picture of Antony Antony works with customers across the US and Canada in implementing SOA and other Fusion Middleware solutions. Antony is the co-author of the SOA Suite 11g Developers Cookbook, the SOA Suite 11g Developers Guide and the SOA Suite Developers Guide.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today