Udi Dahan   Udi Dahan – The Software Simplist
Enterprise Development Expert & SOA Specialist
 
  
    Blog Consulting Training Articles Speaking About
  

Me and my Shadowfax


Posted in SOA

Shadowfax v3 is out ( if you read this blog, then you doubtlessly already know that ) and can be found here: http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=9c29a963-594e-4e7a-9c45-576198df8058

I’m very pleased to see that my thoughts about entities have made it in. A special hats off to the team for finding a better name for my PersistenceService – now called Entity Services. In hindsight, its obvious that there needs to be more than one low level service for dealing with entities.

“Entity Services represent simple atomic operations on an entity like orders, accounts, customers etc.  May write directly to store or component, external partner or legacy system.”

Now, the services exposed by the Entity Services aren’t to be exposed to the world. They are too low-level, and have no business value. That’s why there needs to be another service above ( around ? ) them. What I previously called the BusinessService is now referred to as Activity Services. Again, it only makes sense that there be more than one if necessary.

“Activity services coordinate the operation of several Entity Services into a single atomic operation (UpdateCustomer, AcceptPO)”.

These services are ready for prime time – at the single system level anyway. It makes perfect sense for a system to expose these services for consumption by other systems in the enterprise. On the other hand, I don’t think that they are so suited to be exposed to external partners.

For this reason, there are Process Services. “Process services represent long running business processes that may involve complex workflow and human interaction”. This is an area that I have to give some more thought to, from an implementation perspective. Specifically, how the Business Rules Services interact with the Process Services. It is fairly clear ( to me, at least ) how the Business Rules Services work in concert with the Activity Services. So, I’ll have to see how to resolve these issues.

All in all, I think that Shadowfax is going in the right direction. I specifically like the way that all of this sits with developing a single system. There has been much ado about nothing on the whole “SOA is about integrating different systems vs SOA is about how to build one system” debate. I’m glad to see that Shadowfax has taken the high road.

Tell me what you think. Is Shadowfax on target ?

Comments
Posted on Saturday, January 24th, 2004.



Prototyping is ( should be ) learning


Posted in Prototyping

I’m going to try something new for a change. Up until now I’ve always put special effort in my posts to make sure that they were worth reading. As such, the time it took to actually get a post out was considerable. So, I’m going to try to speed-post ( speed writing as real authors call it ). Should the quality suffer too much, let me know and I’ll go back to the way things were before.

Following up my last post on prototyping, I have recently finished a project for a client – a prototype. No, not a paper prototype. A .Net Winforms prototype, hooked up to a MS SQL Server 2000 database, with stored procs. It was actually more of a full-blown application – but it was still a prototype for a huge military system.

The client is a BDUF software shop – well, actually they’re more system integration than just software. But, despite that, the prototype was not developed by their strict methods and just sort of happened. Think “quick & dirty” but dirty is out ( because that doesn’t sound good ) and quick didn’t really happen. Hmm…

Anyway, my prior post on prototypes came as a result of a discussion on a different blog ( fabrice’s I think ). There, comments discussed the value in putting more effort in a prototype in the hope that some of the prototype could be then reused in the actual system. I have issues with this since it takes you out of the proper mindframe required for prototyping. Bottom line: you should not reuse code from prototypes. The most important thing to get from a prototype is to learn. The lessons learned are the value of a prototype.

Anyway, after talking to several people on the team at the client I got the distinct impression that the lessons learned would be only those that were planned. In other words, other than the UI, no element of the prototype was to be studied. The famous statement ( the fact that it is famous makes it all the more prone to misinterpretation ) that you wouldn’t drive a clay model of a car ( or live in a cardboard house, or whatever analogy of the moment presents itself ) was used as justification.

The most important lesson I learned from the prototype was the difficulty of getting the layered architecture to sit with the OO design used at cross-functional boundaries ( UI elements – Domain elements for instance ). Later, I redid the design using a SOA and you’d be surprised at how well everything held together.

Since I’m running out of time I’ll wrap it up. The moral of the story, don’t put on the blinders when it comes time to learn. Don’t just learn what you plan to. Be ready to learn totally new things that you didn’t expect. Make time for this kind of learning. It is the most valuable there is.

Comments
Posted on Saturday, January 24th, 2004.



But on the OTHER hand …


Posted in General

I’ve decided, after much thought, not to give up on this location. I’ve grown attached to it – especially the configurability of the MoveableType engine. What will be happening is that I will be posting here as my primary post, and shadowing the post ( not sure if its entirety or some proper excerpt ) on the GeekDojo.

Your thoughts would be most welcome.

Comments
Posted on Friday, January 23rd, 2004.



Moving


Posted in General

Although I’ve always been somewhat annoyed by people I subscribe to moving, it appears that the inevitable has finally knocked on my door.

This isn’t a bad thing, really. I will be joining the ranks of the GeekDojo.

So, for all those who will be inconvenienced by the move – my apologies. But, life goes on. And, after all, change is good.

I will make an effort to bring over my existing content to my new home, but it’ll take a while so please bear with me.

Other than that, here’s my new home:

http://blogs.geekdojo.net/udi

Comments
Posted on Thursday, January 22nd, 2004.



What's persistence got to do with it ?


Posted in SOA

My posts seem to be garnering lots of comments from around the blogosphere. However, many seem to view the posts made so far as a recommendation on how to do SOA. This is not quite true. I’m trying to take you, step by step, from LA – which you already know – to SOA. The journey isn’t complete, yet.

What’s been covered so far is this:1. How to create a layer/project in .Net that behaves like a service; 2. How to create an entity layer/project containing all the kinds of data that will be passed between layers/services.

These are necessary first steps to take, and are by no means the final solution.

I also gave several examples of classic services – security, logging, exception management, etc.

Steve Maine states in his post that all I’ve done so far is migrated LA to something called an application framework. If this is in fact true, I’m well pleased with myself. Achieving orthogonality, generality, and reusability in any architecture can be viewed as a success. In his opinion, this falls short of the pure SOA. To tell you the truth, if all you get from all this hoo-hah is how to make orthogonal, general, and reusable architectures, then my daily dollar’s been well spent.

I think that it’s important to point out at this point that the stages above are indeed prerequisites to SOA. Sure, any idiot can create a webservice that forwards calls to other code without giving a thought to any of the *ilities above ( and a lot of idiots do ) – but that’s not SOA. More importantly, none of the benefits of SOA can be achieved. This is why I focus so much on the “small-scale” SOA. Doing “large-scall” SOA while ignoring the small may make for a well-designed large machine, but low-quality gears, drive chains, and cogs won’t bear the weight.

So, what are the next steps, you ask. Well, that’s an excellent question. There are various ways to proceed, so I’ll start from the most understandable steps.

First off, lets see how to do persistence, which, for some reason, was always the sticking point for a lot of developers used to O/R mapping. So, we have a PersistenceService project, which has a one public class called PersistenceService. This class has a private constructor ( nobody needs to initialize this because … ) and all static methods. All the methods you’d expect to find are still there. Personally, I don’t like the catchall “Save” method and prefer having separate “Create” and “Update” methods. All the basic CRUD operations are there for every entity.

I once tried having all entities inherit from an IBaseEntity which pretty much only declared an Id property. This was so that the PersistenceService exposed only one Create, Read, Update, and Delete method – each accepting an IBaseEntity. Then, in the internal service implementation I did a “.GetType()” on the parameter and passed in on to the relevant class. Although this decreased the number of methods in the API, it didn’t have as far-reaching benefits as I’d hoped.

Here’s some code:

namespace PersistenceService

{

  public class PersistenceService

  {

    public void Create(Entities.Customer c)

    {

      // calls to logging service omitted

      // exception management service calls which wrap the following call omitted

      InternalService.Create(c);

    }

  }

}

Simple, isn’t it ?

All calls in the public class look pretty much the same. The InternalService.Create(Entities.Customer c) method can perform the work required or further delegate the work to a Customer class. I assume that you know how to perform the calls necessary to actually insert a row into the database. Just so you know, the “Read” method is actually the most interesting.

For all the O/R guys out there, yes, you handle all this and more. But that’s exactly the problem. When it comes to persistence, that’s all the should be done. No more. All the interesting stuff happens somewhere else – in a different service. Call it “BusinessService” or whatever you like, ’cause it in essence eliminates the infamous BL.

I have some answers to give to questions that have come up in the comments. How does the PersistenceService return collections, especially in the case when returning all children for a parent ?

From an API perspective, its simple ( yet again ). The Read method which receives an entity as a parameter returns the corresponding collection of entities. eg. public static Entities.OrderCollection Read(Entities.Order o). The internal implementation of this method is more interesting and can take many forms. For instance, if the CustomerId property of the order is set ( not null ), then you would select all orders where the customer id is equal to that in the given order’s property. Another case may be that the Id property of the order is set, then you would select the order with the Id equal to that of the given order’s property.

The most important thing that I can say about the persistence service is this: No client code should ever deal directly with it, all code should/must go through the business service – which will be the topic of my next post. =)

Comments
Posted on Tuesday, January 20th, 2004.



But that trick NEVER works


Posted in SOA

Before getting into the responses of the blogosphere to my last post, I wanted to reiterate what it was about. The purpose of my post was “assuming that you know how to build a LA, how do you go about migrating to an SOA”. Meaning, how do you migrate your existing ( and probably well-founded ) knowledge of LAs to knowledge of SOAs.

Now, I’d like to acknowledge the following posts that referred to my previous post on “How To Do SOA”:

My good friend Roy Osherove, as always raining compliments down on me, writes “Using SOA on existing N-tier applications”, but I’m afraid that there was a misunderstanding here. “when you need to introduce the SOA theme on an existing N-tier application” is not at all what I was attempting to show. Should you have a working application, do NOT change its architecture unless absolutely necessary. No, “SOA is cool” doesn’t count.

I think I should stop a second to make a distinction. The definition of SOA has not yet solidified. The way I see it, there are 2 distinct and complementary views. 1. SOA is about how to integrate different systems. 2. SOA is about how to architect a single system. ( Steve pushes the first view with his post: “Making the N-Tier to SOA conversion” )

What I was referring to in my previous post was in the light of the second definition. What Roy refers to is more in line with the first. I won’t be getting much into how to do the first kind of SOA, because there are big vendors out there that plan to make loads of money based on that definition. I’m more interested in helping Joe Developer use a new(old) paradigm to develop systems which, IMHO, is the most suitable today.

Let me reiterate. SOA is how to architect a system ( according to view 2 above ). You would be best served choosing this architecture before starting to code, than after. Even the Agile camps have a System Metaphor which must(?) be decided at project start which guides them throughout the project lifecycle – of course, it evolves over time.

Both Roy and Steve make valid points about putting a facade over existing parts of a system to expose them a services. In this way, they continue to support existing client code that is already dependent on it. I totally agree !

But, if your starting a new system, wouldn’t it be preferable to have all client code access the given functionality in the same way ? Maybe/Yes. 

Wouldn’t it be that much easier to scale out the system if/when necessary ? Yes.

Wouldn’t it make the client code loosely coupled to the functionality ? Yes.

Wouldn’t it make the functionality itself more testable ? Yes.

Wouldn’t it be that much easier to handle logging, exception management, security, and other cross-cutting concerns ? Definitely.

<pause />

I’ve reached a conclusion. My next post won’t be so much of an example of an implementation of a service. My next post will be about replacing the BL as we know it. I think that once you’ll see what the BusinessService looks like in a system with an SOA, things will become that much clearer.

Of course, should you have something you’re dying to see next, let me know =)

Comments
Posted on Sunday, January 18th, 2004.



I'll see you when you get there


Posted in SOA

How to do SOA ?

That’s a question that’s been popping up a lot lately. I’ve been answering small facets of the question in comments all over the place, but I think that it’s time to handle the big one.

First of all, I assume that the architecture that you’re currently using is a layered architecture ( N-tier counts despite the “tier” misnomer, N=3 is also OK ). What I’m going to do is to do a step-by-step migration from a layered architecture (LA) to an SOA.

First some history. In your basic 3 tier LA, the layers are PL, BL, and DL. PL = presentation layer, BL = business layer, DL = data layer. Over time, people realized that layers were a nice abstraction and started changing the above layers to a system with more layers. For instance, tables in the database were the storage layer (SL), data access code to interact with the storage was often split into 2 layers – database Dal ( data access layer ) consisting primarily of stored procedure, and the app Dal which was code that exposed those sp’s to the system in its own framework. ( Note that in many cases it is possible and even desirable to do away with the stored procedures and have the same sql code in the app Dal. ) The BL primarily was implemented by Fowler’s Domain Model Pattern – rich objects holding both the data, behaviour, and “structure” of the system ( think Customer.Orders ). The PL use of the BL was by way of its objects. In other words, the PL was intimately aware of ( and dependant on ) the BL’s inner workings.

So … What’s the problem ? Well there are quite a few, and I’ll eventually make some exhaustive list of what the problems are, and why you should move to SOAs. For one, the BL may be a good API for working with it in process, but if you start to use them for remote invocation your performance will die. Why ? Because the BL is chatty, meaning everything is done in small bites – give me this, now give me that – when what is needed for remote clients ( or other systems ) is a chunky API – give me everything I need at once. Well, this problem can be fixed by putting in another layer, but I won’t get into that ( unless you ask nicely =) ).

So, assuming that you know how to build a LA, how do you go about migrating to an SOA ? Here’s how.

First you have to change your layers so that they behave like services. Then, if you want, you can wrap them up using webservices or some other plumbing choice. You’ll need to have a standard way for passing data to your services ( SOA’s schema ). How do you do that ?

Well, there’s implicit knowledge scattered all around the system. Its the domain itself. The PL presents it. The BL performs logic on it. The DL stores it. Its data. It doesn’t have behaviour. These are the “entities” of the system. What are the entities you ask ? They are the objects in your BL without the behaviour. Customer, Order, Product, etc, all these are entities that ALL parts of the system deal with. This is the stuff the will be passed between the services. If you wanted to integrate with other systems, you could easily serialize the entities to xml.

So, step 1 is to create a new layer, called Entities ( or something else if you prefer ) and copy all the classes of your BL that are part of the domain model to it. Next, remove all methods from those classes. There is some disagreement on whether or not the relationships should be left in or handled by a different service. ( I’ve tried using a separate service for handling relationships between entities with quite a lot of success, but can’t generalize it enough to push for it as a part of the SOA proper. )

So, from now on, whenever you have to pass data between layers, use the corresponding entity.

So, you now know how to get data to your service, but its still a layer. So lets change the layer to a service. A service has a single point of entry, allowing only method calls. So …

For each layer, make only one visible class, something like ($WhatYourServiceDoes)Service – like PersistenceService or AuthenticationService. I can see your getting mixed up.

When working in .Net, I have a project called PersistenceService, in it I have a class called PersistenceService. When somebody needs persistence services, they add a reference to the PersistenceService project, at the top of their client code file they write “using PersistenceService;” and then, in the code itself, when they write “PersistenceService.Update(u);” they are actually accessing the PersistenceService.PersistenceService class – it just makes it more readable like this.

All other classes inside a service are internal, nobody should be able to get at them. The public class has only public static methods – like “public static void Update(Entities.User u)” mentioned above ( you might want to return bool in your specific case, or maybe int ).

Now, the public class handles all security, logging, exception management, and other infrastructure code for each call, finally passing the call on to an internal class which holds the logic for actually doing the work.This class has almost the same structure as the public class and is the one in charge of actually getting the work done. There’s no problem in instantiating other objects there to do the work.

In SOA, not everything is a service. /* cheap shot at the OO crowd */

<aside> This is getting rather long … </aside>

Its time for some examples ( I’ll only be showing the SOA way ):

1. Login ( From your PL call this instead of what you did before )

<code>

Entities.User u = new Entities.User();

u.Username = txtUsername.Text;

u.Password = txtPassword.Text;

if (AuthenticationService.CanLogin(u))

  // let the user continue

else

  // show some error message (ask them to try again ?)

</code>

The AuthenticationService has a CanLogin method which takes the user’s credentials from the entity, authenticates them somehow, and returns the result.

Why is this preferable to having a BL.User.Login() method ? Well, is it really the user’s responsibility ( in the “real” world ) to authenticate themselves ? No. If you’d like to change the mechanism for authenticating users ( say moving to ADAM instead of a DB ), is there any reason to touch the User object ? No. There are more reasons, but let’s not get into that.

What is needed is a separation of concerns. How you do something and where you do it (even at the interface level), should be separate from what you do it on.

So, to sum up, make layers into a services. And when you pass/get data to/from a service use entities. Next time, I’ll go about implementing an entire service, something you doubtless have as a layer in ( at least one ) system, so that all this theory makes more sense.

BTW, if you have anything you’d like me to include in the next post specifically, let me know.

Comments
Posted on Saturday, January 17th, 2004.



VB User Group Meeting


Posted in General

I will be presenting at next month’s ( February ) VB.Net User Group Meeting in Israel.

Lecture Topic: “Practical Caching”
 
  First hour:
 
    How caching can improve AND degrade performance.
    How to tell if a particular performance problem can be improved by caching
    ASP.NET caching techniques, tricks, tips, and gotchas
 
  Second hour:
 
    Microsoft Caching Application Block ( CAB ) deep dive:
        What problems it solves, what problems it doesn’t
        What can  you learn from it to improve your code
        How and when to use it in your applications today
 
  Technologies that will be encountered:
    ASP.NET, ADO.NET, SQL Server 2000
Comments
Posted on Monday, January 12th, 2004.



Re: As the pendulum swings


Posted in SOA

Mark Bonafe wrote an interesting post on the whole OO vs procedural debate and how SOA may be just the return to procedural programming.

The problem I have with this, and several other posts on the topic is this, SOA has almost nothing to do with programming. Its about the (functional and non-functional) decomposition of a system. What are its main building blocks. And you know what ? Programming language/style has little do with it.

Frans Bouma asks if “OO is the goal or the tool” ? My answer: I have one goal, and it has nothing to do with OO, SOA, or Domain models. My goal is for my clients to be happy with the system, and to make a profit.

Anything that drives me to this goal is welcome. It used to be that OO was my favorite tool/roadmap, today I use SOA for architecture, and OO for the actual development. Gone is OO Analysis and Design at the system level, supplanted by SOA.

I find that the pendulum doesn’t have much to do with it, and here’s why. SOA isn’t about code, OO is.

I think that it is common knowledge in the industry, that the larger a project, the lower chance that it would succeed. Even ( especially ? ) if using an OO methodology ( aghh! the “M” word ! ). Anybody wondering why ? Could it possibly be that the methods that we were using for small-medium scale development efforts in the past don’t work so well on big projects today ?

I think that the main reason that OO couldn’t hold up, was that OO was about modelling the world – for every object in the real world, we’ll have an object in code. Big systems aren’t so much about objects in the real world, but more about interactions, processes, and flows.

This may sound like the pendulum swinging back to procedural programming, only, its not programming. Its about the system’s architecture. And its not done by programmers using a computer language, but rather by business drivers and 30,000 foot architects. ( I actually wish there were some “low-level” programmers that brought them down to earth every now and then ). These are the people who tell us what we need to build.

Here’s a hypothetical discussion between a business driver(B) and an architect (A):

<anecdote>
(B)We need to a way to save the data we get, and use it later. (A)We should have a persistence thing (service) in the system.

(B)We need to do all sorts of checks to see that the data we get is valid. (A) We should have a validation thing too.

(B) We need to integrate this stuff with our partner companies’ systems. (A) Well, we need some way for our systems to talk together – webservices might work, but our development shop knows more about MSMQ. But, we’ll need to have a way to move to different communications later. We should also have something to authorize things ( authorization service ).

(A talking to staff later ) I guess we need some way to get all of these high level requirements to fit together. Did somebody say OO ( or OOD&A ) ? That has nothing to do with any of this stuff ! What we need is something to tell us about how to structure a system to do all this.
</anecdote>

SOA is about what the major building blocks of a system are, and how they work together. In other words, the executive summary. This IS the system. OO is how to build each part – or, at least OO seems to be the best tool we have today for actual development.

Frans – SOA is about WHAT is the system, not so much as to WHY. The why is actually quite simple – “because that’s what the client wants”. OO is, as you said, about HOW to get it done.

Comments
Posted on Friday, January 9th, 2004.



A collection of comments


Posted in SOA

After spending quite some time commenting on other people’s posts about SOA, I thought I’d bring them all together in a post. My apologies for not editing it into a single coherent post.

Following “Adventures in SOA, Part 2”: from my comments:

If you want to go SOA all the way, Fowler’s domain model doesn’t quite fit. This is because it exists in the context of an OO architecture.

For instance, in an SOA there is a persistence service to which you send entities (entities are objects without behaviour); rather than calling myCustomer.Save() you would call your persistence service and pass in myCustomerEntity as a parameter.

SOA is a different way of thinking about systems. In order to migrate my thinking from OO to SO, I started by introducing a facade for each layer. The only way I could interact with a layer was through the facade. So, instead of doing:

new BL.Customer().GetById(id);

I would call:

BL.Facade.GetCustomerById(id);

This morphed my BL layer, for all intents and purposes, to a service. From there, things sort of came along by themselves.

In a general view, an SOA has a coarse grained Business service which replaces the Domain Model pattern in an OOA. The Business service uses a business rules service/engine for determining whether actions can be performed. Rules include things like DoesOrderQualifyForADiscount(Order o).

In many cases it also makes sense to have a validation service for lower level checks. The lowest level checks, nullability and string lengths for example, can be implemented in the entities themselves.

I find SOAs to be more suited for today’s development challenges than OOAs since they allow for an increased separation of concerns in systems.

Following “Adventures in SOA, Part 3”: from my first comment:

I’ve just become a little disillusioned about OO architecture.

Why ?

Because of the “Where does this go ?” syndrome. This syndrome attacks after you’ve already built quite a lot of the system, and usually takes the form of some method you need to add, but just don’t know to which object.

For example, I do a lot of systems for academic institutions, and the following requirement sums it up: A lab administrator registers a student to a final project, for a course that the student is registered to in the given semester.

From this I know I need a “RegisterStudentToFinalProjectForCourseAndSemester(Student s, Project p, Course c, Semester r)” method. But where does it go ? On the LabAdmin class ? The Student ? Project ? Course ? Semester ? Eventually I just pick one and moved on.

What’s the problem with this ?

Well, the class that I choose becames tightly coupled to all the other classes. Martin Fowler probably would have found a nice solution using aspects ( as Brian McCallister posted here: http://kasparov.skife.org/blog/2003/12/27#design-ideas ), but I am not so skilled.

I look for architecture to push the developer into consistently making good choices ( see The Pit of Success, a la Brad Abrams: http://blogs.gotdotnet.com/BradA/PermaLink.aspx/b7a0cf5c-a283-4f95-a508-819102d2feae ). Unfortunately, in an OOA Joe can make bad decisions that will have far reaching ramifications on the entire system.

IMHO, services are a step up on the ladder from objects when it comes to architecture. Services will become the major building blocks of the future. Finally, services encourage developing coarse-grained APIs, which is exactly what will be required when the services will be distributed throughout the enterprise. Essentially, this will force us developers to deal with these important issues ahead of time. And, well, its nice to get things right the first time around. Isn’t it ?

from my second comment:

One final note =)

The example I gave of BL.Customer().GetById(id) and BL.Facade.GetCustomerById(id) was given in the context of migrating OO thinking to SO thinking. This is by no means a “Rule”.

Once you give up the “everything’s an object” way of thinking, and begin to adopt services when they seem to fit, then the system’s structure becomes more suited to the tasks its required to perform. Which leads me to persistence as a service.

Although I’ll probably regret this, the great O/R debate that’s been raging recently seems to focus too much on a relatively minor portion of moderate and up complexity systems. Yes, persistence is important. No, it should not be the driving force behind your entire architecture.

And, in all this debate, nobody stops to talk about the business rules. Who says myCustomer.Save() is allowed to be called now, in this context, by the current user, etc. Where does this code fit in ?

I guess the one thing that I can say here is this: Don’t lose sight of the forest for the trees.

Following “Adventures in SOA, Part 4”: my comment:

The service should not be implemented as:

AuthenticateUser(username, password, application)
AddUser(name, address, etc)
UpdateUser(userId, name, address, etc)

But rather:

AuthenticateUser(Entities.User u)
AddUser(Entities.User u)
UpdateUser(Entities.User u)

Where Entities.User has the following properties:

int Id { get; set; }
string Name { get; set; }
string Address { get; set; }
etc…

Note that you would implement basic validation checks in the setters – such as checking the string passed in is of the appropriate length.

Now the Entities “layer” is really just a part of the common type system for the application. So, when distributing your services and setting up the calls over web services or message queuing, these entities will be passed as Xml.

This is how you move to the “Share schema, not type” directive, since, all these entities in essence just define a schema. From an implementation perspective, yes, they are a type too, but that’s really just internal to the service.

And a final note:

The set of Service Layer, Remote Facade, and Data Transfer Object patterns ( from Fowler’s PoEEA ) are essential components of SOA. The Data Transfer Object pattern is implemented by what I call entities. These entities form the schema in SOA.

Comments
Posted on Friday, January 9th, 2004.



   


Don't miss my best content
 

Recommendations

Bryan Wheeler, Director Platform Development at msnbc.com
Udi Dahan is the real deal.

We brought him on site to give our development staff the 5-day “Advanced Distributed System Design” training. The course profoundly changed our understanding and approach to SOA and distributed systems.

Consider some of the evidence: 1. Months later, developers still make allusions to concepts learned in the course nearly every day 2. One of our developers went home and made her husband (a developer at another company) sign up for the course at a subsequent date/venue 3. Based on what we learned, we’ve made constant improvements to our architecture that have helped us to adapt to our ever changing business domain at scale and speed If you have the opportunity to receive the training, you will make a substantial paradigm shift.

If I were to do the whole thing over again, I’d start the week by playing the clip from the Matrix where Morpheus offers Neo the choice between the red and blue pills. Once you make the intellectual leap, you’ll never look at distributed systems the same way.

Beyond the training, we were able to spend some time with Udi discussing issues unique to our business domain. Because Udi is a rare combination of a big picture thinker and a low level doer, he can quickly hone in on various issues and quickly make good (if not startling) recommendations to help solve tough technical issues.” November 11, 2010

Sam Gentile Sam Gentile, Independent WCF & SOA Expert
“Udi, one of the great minds in this area.
A man I respect immensely.”





Ian Robinson Ian Robinson, Principal Consultant at ThoughtWorks
"Your blog and articles have been enormously useful in shaping, testing and refining my own approach to delivering on SOA initiatives over the last few years. Over and against a certain 3-layer-application-architecture-blown-out-to- distributed-proportions school of SOA, your writing, steers a far more valuable course."

Shy Cohen Shy Cohen, Senior Program Manager at Microsoft
“Udi is a world renowned software architect and speaker. I met Udi at a conference that we were both speaking at, and immediately recognized his keen insight and razor-sharp intellect. Our shared passion for SOA and the advancement of its practice launched a discussion that lasted into the small hours of the night.
It was evident through that discussion that Udi is one of the most knowledgeable people in the SOA space. It was also clear why – Udi does not settle for mediocrity, and seeks to fully understand (or define) the logic and principles behind things.
Humble yet uncompromising, Udi is a pleasure to interact with.”

Glenn Block Glenn Block, Senior Program Manager - WCF at Microsoft
“I have known Udi for many years having attended his workshops and having several personal interactions including working with him when we were building our Composite Application Guidance in patterns & practices. What impresses me about Udi is his deep insight into how to address business problems through sound architecture. Backed by many years of building mission critical real world distributed systems it is no wonder that Udi is the best at what he does. When customers have deep issues with their system design, I point them Udi's way.”

Karl Wannenmacher Karl Wannenmacher, Senior Lead Expert at Frequentis AG
“I have been following Udi’s blog and podcasts since 2007. I’m convinced that he is one of the most knowledgeable and experienced people in the field of SOA, EDA and large scale systems.
Udi helped Frequentis to design a major subsystem of a large mission critical system with a nationwide deployment based on NServiceBus. It was impressive to see how he took the initial architecture and turned it upside down leading to a very flexible and scalable yet simple system without knowing the details of the business domain. I highly recommend consulting with Udi when it comes to large scale mission critical systems in any domain.”

Simon Segal Simon Segal, Independent Consultant
“Udi is one of the outstanding software development minds in the world today, his vast insights into Service Oriented Architectures and Smart Clients in particular are indeed a rare commodity. Udi is also an exceptional teacher and can help lead teams to fall into the pit of success. I would recommend Udi to anyone considering some Architecural guidance and support in their next project.”

Ohad Israeli Ohad Israeli, Chief Architect at Hewlett-Packard, Indigo Division
“When you need a man to do the job Udi is your man! No matter if you are facing near deadline deadlock or at the early stages of your development, if you have a problem Udi is the one who will probably be able to solve it, with his large experience at the industry and his widely horizons of thinking , he is always full of just in place great architectural ideas.
I am honored to have Udi as a colleague and a friend (plus having his cell phone on my speed dial).”

Ward Bell Ward Bell, VP Product Development at IdeaBlade
“Everyone will tell you how smart and knowledgable Udi is ... and they are oh-so-right. Let me add that Udi is a smart LISTENER. He's always calibrating what he has to offer with your needs and your experience ... looking for the fit. He has strongly held views ... and the ability to temper them with the nuances of the situation.
I trust Udi to tell me what I need to hear, even if I don't want to hear it, ... in a way that I can hear it. That's a rare skill to go along with his command and intelligence.”

Eli Brin, Program Manager at RISCO Group
“We hired Udi as a SOA specialist for a large scale project. The development is outsourced to India. SOA is a buzzword used almost for anything today. We wanted to understand what SOA really is, and what is the meaning and practice to develop a SOA based system.
We identified Udi as the one that can put some sense and order in our minds. We started with a private customized SOA training for the entire team in Israel. After that I had several focused sessions regarding our architecture and design.
I will summarize it simply (as he is the software simplist): We are very happy to have Udi in our project. It has a great benefit. We feel good and assured with the knowledge and practice he brings. He doesn’t talk over our heads. We assimilated nServicebus as the ESB of the project. I highly recommend you to bring Udi into your project.”

Catherine Hole Catherine Hole, Senior Project Manager at the Norwegian Health Network
“My colleagues and I have spent five interesting days with Udi - diving into the many aspects of SOA. Udi has shown impressive abilities of understanding organizational challenges, and has brought the business perspective into our way of looking at services. He has an excellent understanding of the many layers from business at the top to the technical infrstructure at the bottom. He is a great listener, and manages to simplify challenges in a way that is understandable both for developers and CEOs, and all the specialists in between.”

Yoel Arnon Yoel Arnon, MSMQ Expert
“Udi has a unique, in depth understanding of service oriented architecture and how it should be used in the real world, combined with excellent presentation skills. I think Udi should be a premier choice for a consultant or architect of distributed systems.”

Vadim Mesonzhnik, Development Project Lead at Polycom
“When we were faced with a task of creating a high performance server for a video-tele conferencing domain we decided to opt for a stateless cluster with SQL server approach. In order to confirm our decision we invited Udi.

After carefully listening for 2 hours he said: "With your kind of high availability and performance requirements you don’t want to go with stateless architecture."

One simple sentence saved us from implementing a wrong product and finding that out after years of development. No matter whether our former decisions were confirmed or altered, it gave us great confidence to move forward relying on the experience, industry best-practices and time-proven techniques that Udi shared with us.
It was a distinct pleasure and a unique opportunity to learn from someone who is among the best at what he does.”

Jack Van Hoof Jack Van Hoof, Enterprise Integration Architect at Dutch Railways
“Udi is a respected visionary on SOA and EDA, whose opinion I most of the time (if not always) highly agree with. The nice thing about Udi is that he is able to explain architectural concepts in terms of practical code-level examples.”

Neil Robbins Neil Robbins, Applications Architect at Brit Insurance
“Having followed Udi's blog and other writings for a number of years I attended Udi's two day course on 'Loosely Coupled Messaging with NServiceBus' at SkillsMatter, London.

I would strongly recommend this course to anyone with an interest in how to develop IT systems which provide immediate and future fitness for purpose. An influential and innovative thought leader and practitioner in his field, Udi demonstrates and shares a phenomenally in depth knowledge that proves his position as one of the premier experts in his field globally.

The course has enhanced my knowledge and skills in ways that I am able to immediately apply to provide benefits to my employer. Additionally though I will be able to build upon what I learned in my 2 days with Udi and have no doubt that it will only enhance my future career.

I cannot recommend Udi, and his courses, highly enough.”

Nick Malik Nick Malik, Enterprise Architect at Microsoft Corporation
You are an excellent speaker and trainer, Udi, and I've had the fortunate experience of having attended one of your presentations. I believe that you are a knowledgable and intelligent man.”

Sean Farmar Sean Farmar, Chief Technical Architect at Candidate Manager Ltd
“Udi has provided us with guidance in system architecture and supports our implementation of NServiceBus in our core business application.

He accompanied us in all stages of our development cycle and helped us put vision into real life distributed scalable software. He brought fresh thinking, great in depth of understanding software, and ongoing support that proved as valuable and cost effective.

Udi has the unique ability to analyze the business problem and come up with a simple and elegant solution for the code and the business alike.
With Udi's attention to details, and knowledge we avoided pit falls that would cost us dearly.”

Børge Hansen Børge Hansen, Architect Advisor at Microsoft
“Udi delivered a 5 hour long workshop on SOA for aspiring architects in Norway. While keeping everyone awake and excited Udi gave us some great insights and really delivered on making complex software challenges simple. Truly the software simplist.”

Motty Cohen, SW Manager at KorenTec Technologies
“I know Udi very well from our mutual work at KorenTec. During the analysis and design of a complex, distributed C4I system - where the basic concepts of NServiceBus start to emerge - I gained a lot of "Udi's hours" so I can surely say that he is a professional, skilled architect with fresh ideas and unique perspective for solving complex architecture challenges. His ideas, concepts and parts of the artifacts are the basis of several state-of-the-art C4I systems that I was involved in their architecture design.”

Aaron Jensen Aaron Jensen, VP of Engineering at Eleutian Technology
Awesome. Just awesome.

We’d been meaning to delve into messaging at Eleutian after multiple discussions with and blog posts from Greg Young and Udi Dahan in the past. We weren’t entirely sure where to start, how to start, what tools to use, how to use them, etc. Being able to sit in a room with Udi for an entire week while he described exactly how, why and what he does to tackle a massive enterprise system was invaluable to say the least.

We now have a much better direction and, more importantly, have the confidence we need to start introducing these powerful concepts into production at Eleutian.”

Gad Rosenthal Gad Rosenthal, Department Manager at Retalix
“A thinking person. Brought fresh and valuable ideas that helped us in architecting our product. When recommending a solution he supports it with evidence and detail so you can successfully act based on it. Udi's support "comes on all levels" - As the solution architect through to the detailed class design. Trustworthy!”

Chris Bilson Chris Bilson, Developer at Russell Investment Group
“I had the pleasure of attending a workshop Udi led at the Seattle ALT.NET conference in February 2009. I have been reading Udi's articles and listening to his podcasts for a long time and have always looked to him as a source of advice on software architecture.
When I actually met him and talked to him I was even more impressed. Not only is Udi an extremely likable person, he's got that rare gift of being able to explain complex concepts and ideas in a way that is easy to understand.
All the attendees of the workshop greatly appreciate the time he spent with us and the amazing insights into service oriented architecture he shared with us.”

Alexey Shestialtynov Alexey Shestialtynov, Senior .Net Developer at Candidate Manager
“I met Udi at Candidate Manager where he was brought in part-time as a consultant to help the company make its flagship product more scalable. For me, even after 30 years in software development, working with Udi was a great learning experience. I simply love his fresh ideas and architecture insights.
As we all know it is not enough to be armed with best tools and technologies to be successful in software - there is still human factor involved. When, as it happens, the project got in trouble, management asked Udi to step into a leadership role and bring it back on track. This he did in the span of a month. I can only wish that things had been done this way from the very beginning.
I look forward to working with Udi again in the future.”

Christopher Bennage Christopher Bennage, President at Blue Spire Consulting, Inc.
“My company was hired to be the primary development team for a large scale and highly distributed application. Since these are not necessarily everyday requirements, we wanted to bring in some additional expertise. We chose Udi because of his blogging, podcasting, and speaking. We asked him to to review our architectural strategy as well as the overall viability of project.
I was very impressed, as Udi demonstrated a broad understanding of the sorts of problems we would face. His advice was honest and unbiased and very pragmatic. Whenever I questioned him on particular points, he was able to backup his opinion with real life examples. I was also impressed with his clarity and precision. He was very careful to untangle the meaning of words that might be overloaded or otherwise confusing. While Udi's hourly rate may not be the cheapest, the ROI is undoubtedly a deal. I would highly recommend consulting with Udi.”

Robert Lewkovich, Product / Development Manager at Eggs Overnight
“Udi's advice and consulting were a huge time saver for the project I'm responsible for. The $ spent were well worth it and provided me with a more complete understanding of nServiceBus and most importantly in helping make the correct architectural decisions earlier thereby reducing later, and more expensive, rework.”

Ray Houston Ray Houston, Director of Development at TOPAZ Technologies
“Udi's SOA class made me smart - it was awesome.

The class was very well put together. The materials were clear and concise and Udi did a fantastic job presenting it. It was a good mixture of lecture, coding, and question and answer. I fully expected that I would be taking notes like crazy, but it was so well laid out that the only thing I wrote down the entire course was what I wanted for lunch. Udi provided us with all the lecture materials and everyone has access to all of the samples which are in the nServiceBus trunk.

Now I know why Udi is the "Software Simplist." I was amazed to find that all the code and solutions were indeed very simple. The patterns that Udi presented keep things simple by isolating complexity so that it doesn't creep into your day to day code. The domain code looks the same if it's running in a single process or if it's running in 100 processes.”

Ian Cooper Ian Cooper, Team Lead at Beazley
“Udi is one of the leaders in the .Net development community, one of the truly smart guys who do not just get best architectural practice well enough to educate others but drives innovation. Udi consistently challenges my thinking in ways that make me better at what I do.”

Liron Levy, Team Leader at Rafael
“I've met Udi when I worked as a team leader in Rafael. One of the most senior managers there knew Udi because he was doing superb architecture job in another Rafael project and he recommended bringing him on board to help the project I was leading.
Udi brought with him fresh solutions and invaluable deep architecture insights. He is an authority on SOA (service oriented architecture) and this was a tremendous help in our project.
On the personal level - Udi is a great communicator and can persuade even the most difficult audiences (I was part of such an audience myself..) by bringing sound explanations that draw on his extensive knowledge in the software business. Working with Udi was a great learning experience for me, and I'll be happy to work with him again in the future.”

Adam Dymitruk Adam Dymitruk, Director of IT at Apara Systems
“I met Udi for the first time at DevTeach in Montreal back in early 2007. While Udi is usually involved in SOA subjects, his knowledge spans all of a software development company's concerns. I would not hesitate to recommend Udi for any company that needs excellent leadership, mentoring, problem solving, application of patterns, implementation of methodologies and straight out solution development.
There are very few people in the world that are as dedicated to their craft as Udi is to his. At ALT.NET Seattle, Udi explained many core ideas about SOA. The team that I brought with me found his workshop and other talks the highlight of the event and provided the most value to us and our organization. I am thrilled to have the opportunity to recommend him.”

Eytan Michaeli Eytan Michaeli, CTO Korentec
“Udi was responsible for a major project in the company, and as a chief architect designed a complex multi server C4I system with many innovations and excellent performance.”


Carl Kenne Carl Kenne, .Net Consultant at Dotway AB
“Udi's session "DDD in Enterprise apps" was truly an eye opener. Udi has a great ability to explain complex enterprise designs in a very comprehensive and inspiring way. I've seen several sessions on both DDD and SOA in the past, but Udi puts it in a completly new perspective and makes us understand what it's all really about. If you ever have a chance to see any of Udi's sessions in the future, take it!”

Avi Nehama, R&D Project Manager at Retalix
“Not only that Udi is a briliant software architecture consultant, he also has remarkable abilities to present complex ideas in a simple and concise manner, and...
always with a smile. Udi is indeed a top-league professional!”

Ben Scheirman Ben Scheirman, Lead Developer at CenterPoint Energy
“Udi is one of those rare people who not only deeply understands SOA and domain driven design, but also eloquently conveys that in an easy to grasp way. He is patient, polite, and easy to talk to. I'm extremely glad I came to his workshop on SOA.”

Scott C. Reynolds Scott C. Reynolds, Director of Software Engineering at CBLPath
“Udi is consistently advancing the state of thought in software architecture, service orientation, and domain modeling.
His mastery of the technologies and techniques is second to none, but he pairs that with a singular ability to listen and communicate effectively with all parties, technical and non, to help people arrive at context-appropriate solutions. Every time I have worked with Udi, or attended a talk of his, or just had a conversation with him I have come away from it enriched with new understanding about the ideas discussed.”

Evgeny-Hen Osipow, Head of R&D at PCLine
“Udi has helped PCLine on projects by implementing architectural blueprints demonstrating the value of simple design and code.”

Rhys Campbell Rhys Campbell, Owner at Artemis West
“For many years I have been following the works of Udi. His explanation of often complex design and architectural concepts are so cleanly broken down that even the most junior of architects can begin to understand these concepts. These concepts however tend to typify the "real world" problems we face daily so even the most experienced software expert will find himself in an "Aha!" moment when following Udi teachings.
It was a pleasure to finally meet Udi in Seattle Alt.Net OpenSpaces 2008, where I was pleasantly surprised at how down-to-earth and approachable he was. His depth and breadth of software knowledge also became apparent when discussion with his peers quickly dove deep in to the problems we current face. If given the opportunity to work with or recommend Udi I would quickly take that chance. When I think .Net Architecture, I think Udi.”

Sverre Hundeide Sverre Hundeide, Senior Consultant at Objectware
“Udi had been hired to present the third LEAP master class in Oslo. He is an well known international expert on enterprise software architecture and design, and is the author of the open source messaging framework nServiceBus. The entire class was based on discussion and interaction with the audience, and the only Power Point slide used was the one showing the agenda.
He started out with sketching a naive traditional n-tier application (big ball of mud), and based on suggestions from the audience we explored different solutions which might improve the solution. Whatever suggestions we threw at him, he always had a thoroughly considered answer describing pros and cons with the suggested solution. He obviously has a lot of experience with real world enterprise SOA applications.”

Raphaël Wouters Raphaël Wouters, Owner/Managing Partner at Medinternals
“I attended Udi's excellent course 'Advanced Distributed System Design with SOA and DDD' at Skillsmatter. Few people can truly claim such a high skill and expertise level, present it using a pragmatic, concrete no-nonsense approach and still stay reachable.”

Nimrod Peleg Nimrod Peleg, Lab Engineer at Technion IIT
“One of the best programmers and software engineer I've ever met, creative, knows how to design and implemet, very collaborative and finally - the applications he designed implemeted work for many years without any problems!

Jose Manuel Beas
“When I attended Udi's SOA Workshop, then it suddenly changed my view of what Service Oriented Architectures were all about. Udi explained complex concepts very clearly and created a very productive discussion environment where all the attendees could learn a lot. I strongly recommend hiring Udi.”

Daniel Jin Daniel Jin, Senior Lead Developer at PJM Interconnection
“Udi is one of the top SOA guru in the .NET space. He is always eager to help others by sharing his knowledge and experiences. His blog articles often offer deep insights and is a invaluable resource. I highly recommend him.”

Pasi Taive Pasi Taive, Chief Architect at Tieto
“I attended both of Udi's "UI Composition Key to SOA Success" and "DDD in Enterprise Apps" sessions and they were exceptionally good. I will definitely participate in his sessions again. Udi is a great presenter and has the ability to explain complex issues in a manner that everyone understands.”

Eran Sagi, Software Architect at HP
“So far, I heard about Service Oriented architecture all over. Everyone mentions it – the big buzz word. But, when I actually asked someone for what does it really mean, no one managed to give me a complete satisfied answer. Finally in his excellent course “Advanced Distributed Systems”, I got the answers I was looking for. Udi went over the different motivations (principles) of Services Oriented, explained them well one by one, and showed how each one could be technically addressed using NService bus. In his course, Udi also explain the way of thinking when coming to design a Service Oriented system. What are the questions you need to ask yourself in order to shape your system, place the logic in the right places for best Service Oriented system.

I would recommend this course for any architect or developer who deals with distributed system, but not only. In my work we do not have a real distributed system, but one PC which host both the UI application and the different services inside, all communicating via WCF. I found that many of the architecture principles and motivations of SOA apply for our system as well. Enough that you have SW partitioned into components and most of the principles becomes relevant to you as well. Bottom line – an excellent course recommended to any SW Architect, or any developer dealing with distributed system.”

Consult with Udi

Guest Authored Books



Creative Commons License  © Copyright 2005-2011, Udi Dahan. email@UdiDahan.com