There was a flurry of activity some years ago (say, around 2007/2008) about SOA (Service-Oriented Architecture) Registries and Repositories. SOA evangelists, architects and "thinkers' waxed lyrical about how real SOA experts (with capital letters) used registries and repositories, and that the 'little-SOA' folk just didn't get the concept, god bless them. Vendors rushed to provide (sometimes expensive) SOA registry / repository tools, a move probably motivated more from the realization that underlying SOA infrastructure and middleware was becoming a commodity, rather than the fact that customers really did need a registry.
Funny that.
Because in many of the SOA customers I've worked with, they simply haven't needed a repository/registry. In fact, the mandate from on top to get a SOA registry or repository has been a distraction! Now, don't get me wrong: I'm not saying the SOA registries are a bad idea. Not at all. I'm just saying that, as a tool, they solve a particular problem. And, if you don't have that problem, then you don't need the tool.
Let's consider what a SOA registry / repository might do for you.
- Store contracts, service level agreements, code, deployable artifacts, documentation (this is the 'repository' nature of the tool)
- Act as a run-time lookup for physical location of services - thus abstracting a services physical network address from a 'logical' network address. (this is the 'registry' nature of the tool)
- Keep a track of who is using what services, and how much (this is the 'governance' nature).
- Enforce service level agreements (again, this is more governance: making sure that the services are available and doing what they should do in a timely fashion)
The 'registry' problem is sometimes solved in software: for example, the Artix Locator, integrated with Apache CXF, allows services to register themselves automatically with a well-known-registry, which clients can then look up at runtime. Nice! I've seen other CXF users write their own registries to achieve something similar - it's really not rocket science (although, you can make your registry as complicated as you like!). I would like to see an open-source implementation of such a runtime-registry, perhaps making use of recent innovative projects like Apache Zookeeper to keep track of who's up and who's down. As an additional note on registries: one customer noted that the OSGi registry, particular in the context of distributed OSGi (dOSGi), adds another dimension to the idea of dynamic, transparent lookup of services. And, if you're acting smart in a JBI or ServiceMix 4 world, you can achieve location transparency through the NMR or ActiveMQ POQs (plain-old-queues).
Interestingly though, if you have your network folk in the room, they'll argue that they can solve this whole lookup and 'location transparency' problem in a heart-beat in hardware with a network switch: think about it: I can go to www.google.com every day - in fact, so can my mam - and never worry about what machine my search gets directed too. So, often people can achieve the 'registry' functionality easy, sometimes with zero code.
So, while there is certainly some argument for using registries and repositories for storage and retrieval of information about what services you have on the network, there are often many options available to you that don't need a dedicated software tool. And, keep in mind, if you have only a small number of services - say up to 20 - you really don't have a management problem - so ad hoc approaches like Wiki's may be perfectly adequate.
With this in mind, I think that 'SOA registry-repository' offerings begin to offer value when they tackle SOA Governance issues, and I think this is the evolutionary route these products are taking. IT owners want to know that security policies are being enforces - these policies should be configurable, not 'designed into' the fabric and code of a service where they're difficult to change. They want to know if the response times are being sluggish. They want a record of who accessed what, and when. This could be for a legal audit trail, but is probably more useful internally as a 'proof-point' to show that service re-use is happening, and, more importantly, a way for a core SOA Centre of Competence to demonstrate the value that its services are offering the rest of the organization. Now this, for me, is a place where these tools can offer real value. As a Progress employee I am biased, and will of course recommend Actional which does an awesome job in this regard - but, as a fair and open-minded person, I have seen users of CXF propose to use HP SOA Centre to achieve something architecturally similar. Actional acts as a 'gateway'. You register your services with it (hey, a touch of 'registry!'). You apply your security policies. And away you go: all SOA requests get passed through gateway and SLAs are enforced and reported. Governance made easy. The only problem with this architecture, from my perspective, is that it creates a potential 'gateway bottleneck; however, with appropriate load-balancing in place this hasn't yet been a problem in practice.
At the end of the day, the tooling is evolving to the point of value around the concepts of governance - I welcome this. However, I still believe that if you're embarking on creation or adoption of SOA concepts, you shouldn't get stalled in the early stages by selection of SOA registry / repository. First, understand your needs - your real needs - in this area, and then, go look for right tool for the job.
4 comments:
Andrian,
I saw your video at http://fusesource.com/products/enterprise-servicemix/#documentation.
But screencast about how to do restful web service is missing...could you please post there or send to jieli98@gmail.com.
thank you so much!!!
Jie
Hi Jie,
Sorry that the screen cast isn't up there any more! Even if it was, I'd suspect that it is very much out of date by now. Can I recommend instead that you download the latest ServiceMix 4 (say from FUSE) and check out the demo in the directory 'example/cxf-jaxrs'. It should have everything you need.
Hope that helps,
Ade.
Hi Ade,
Very nice article. I completely agree that being pragmatic & demand driven with regard to registries, repositories and governance tools is the right way to go.
There is also a small cottage industry of such products, tools and services which may support some of the natures (registry services, storage/repository services, governance services etc) well and be lacking in others. In additions, several start as offshoots from different standards (LDAP from J2EE, UDDI from W3C, Naming Service from CORBA/J2EE).
Also, registries, repositories etc are sticky by their nature and more of a hassle to change readily and easily. Investing upfront and then forcing the use of such services can have the unintended effect of creating less architectural flexibility and limitations down the road.
Nice article... A good read...
Thanks & Regards,
Ashwin...
Hi Ade,
A good read. Is your mam free for consulting engagements ;o)
Seriously though along with repository / registry another important utility service is security. That invariably has to be answered within a "SOA" (capital letters ;o) ) vision. WS-Trust and Federation are in early releases but I believe cxf 2.4 is doing more in this area (an STS client). I would be interested in FUSE solutions /input in this space.
Margo.
Post a Comment