Top 10 SOA Pitfalls: #10 - Not Invented Here syndrome
Join the DZone community and get the full member experience.Join For Free
at xebia we are involved in quite a number of service oriented architecture (soa) projects, from small to big. in that capacity we see a lot of good stuff happening, but we also encounter quite a number of projects that have stalled or failed.
to share our experiences with these soa projects,
rik de groot
have decided to write a series of blogs about the most annoying pitfalls of soa. each week we will be publishing one item from the list. this way we hope to spread awareness of these dangers and also provide you with a checklist of what to watch out for. of course, as is always the case with these kinds of lists, they are not complete and not all the issues are as absolute as the title may imply.
the first item we want to discuss is the not invented here syndrome (nih). of course this is something that can be witnessed in more areas of it, but in a soa context it actually applies on two different levels.
first of all, the idea of a soa is to reuse existing services. if department a builds a get_personal_details service, there's not much point in department b building a get_address service. assuming the get_personal_details service returns the full address.
of course, there may be multiple reasons why department b would do this:
- they don't know about the get_personal_details service. in this case there is no proper service registry, a point we will discuss later.
- the way they design their application does not cause them to think about reuse. this is one of the things that can happen when applying big design up front . something we will also discuss in a future blog (way to build up the suspense, not? ).
- they've known about the get_personal_details service but they decide not to use it. maybe they don't know what it does exactly, maybe they don't trust department a to get it right or keep it right, or maybe they'd rather have full control over the implementation. in this case, you have some classical nih hitting you. this is the time to discuss the ownership of the services and allow both department a and department b to feel in control.
while this kind of nih is not very pretty, it is something that can be fixed on a per-service basis, once the awareness is there. the other kind of nih we have to deal with in a soa is the one where you ended up building your own enterprise service bus (esb), a situation harder to resolve. we've seen two ways in which this came about:
- in the beginning of the 2000's, corporations using message based integration discovered the need for reusable generic services (e.g. translation, routing, transport, etc.). this led to the development of a lot of homebrew messaging frameworks, usually on top of a messaging system such as mq series . while these frameworks served a need back then, their very nature has caused them to become intertwined with a lot of the applications in the enterprise and thereby hindering the introduction of an industry standard esb.
- but even now people are writing their own esb-like services. quite a number of architects have the impression that esb's are pushed heavily by the vendors and disregard esbs as useless systems they can do without. while that bit about the pushing may be true ;-), writing your own translation, routing and transport services does not strike us as a very sensible answer. you are in fact building your very own esb!
in both cases, getting out of this situation involves a lot of work. these proprietary systems are at the core of your systems, so phasing them out will take a long time. for example, if you would decide to buy a cots esb, you would need a migration scenario where you would migrate one service at a time from using the old system to the new esb. you would need a bridge between the old and the new system for that transition time. actually, we have not seen such a migration scenario work all the way through to the end because the old system usually still lingers in some corner of the organization.
the moral here would be: before you start writing your own services and your own esb, have a look at what's available. your "temporary" service will probably be around for a very long time!
next week, rik de groot will continue with pitfall #9.
Published at DZone with permission of Vincent Partington, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.