June 1st, 2009 §
Many big vendors have invested a lot on blue print or reference architectures. I came across another in recent months. I witnessed a vendor team moving from client to client implementing this reference architecture as part of their SOA solution.
What were they actually doing? They were mapping the client’s domain to the reference architecture domain and thereby identified reference architecture services that supported the client’s needs. This most probably works for some people. But I feel uncomfortable with it because…
- It means translating from one domain to another and back again. It’s like having one massive bounded context around the reference architecture with a gigantic set of adaptors and transformers.
- There is a very real possibility of semantic impedance on the boundary of the two domains.
- There is likely to be two domain vocabularies or one large polluted vocabulary with synonyms, etc.
There are other reasons but these few are just old problems and habits coming back again. Things that we accepted as dangerous and limits success in creating good software.
So, are reference architectures bad? Yes and no. Maybe you should consider adopting its domain vocabulary as a first step. A reference architecture with a rich metamodel is more likely to be more valuable than one without a metamodel.
And the moment you start thinking at a meta level, then you’re moving into a higher level of abstraction. In this higher level, you will have a greater opportunity to describe your intentions agnostic of the reference architecture and the vendor’s technology stack.
The way I see it, services are defined at a meta level. They describe your intentions and are independent of a reference architecture. However, if you chose a reference architecture up front, then describe your intentions in the vocabulary of the reference architecture.
Does this make sense? Because I’m just hypothesising here.
March 13th, 2009 §
I was talking SOA – again! I was arguing that modeling of services in UML, BPEL, and any other fancy acronym immediately constrains you to a specific implementation. For example, UML means that your are thinking OO already, BPEL means that your are thinking business processes already. But are those (and others) the best ways to model or represent a service?
In SOA, I have a suspicion (as yet untested!) that a service is closer to an intention than anything else that I can think of because it describes the latent value of the business that invariably is lost by SOA implementations and product stacks. Now that leaves us with a problem – how do you describe intentions consistently across any domain? I don’t know how to do this because to describe intentions in a domain, you need to understand the vocabulary of the domain. Until we can represent vocabularies then only can we create a metamodel for these business intentions.
So how do we model intentions in a single domain since I cannot use UML (implementation!), XPDL (implementation!), BPEL (implementation!) etc? Since the domain is constrained by its vocabulary, we need to create a language that uses this vocabulary. And that, my dear folks, is nothing but a DSL. If we, therefore, model intentions (the services) with a DSL, then we are in a position to translate or transform that intention into any implementation that we like. Realistically, we will likely need additional metadata surrounding the intention described in the DSL to satisfy UML, XPDL, BPEL, WSDL, RESTful APIs, etc.
When we think of the business as what they intend to do or achieve, then we are actually working at a higher level of abstraction – at a meta-level. That is hard to do, but if you do it reasonably well, then you have more freedom when it comes to implementation.
SOA is so screwed up at the moment and most are climbing into or out of rabbit holes because the business intentions are being ignored or forgotten far too early or thought about far too late. Perhaps the most effective SOA implementations will be realised with a suite of DSL’s and the only toolset that you really need is a language workbench and some very skilled language oriented programmers.
March 2nd, 2009 Comments Off
I had quick DSL appropriateness argument last week for someone that was objecting about us implementing a DSL for some small part of the domain.
The argument: “Business users will never write code”.
My response: “But business users will read code”.
And to test the argument, I later emailed one of the business users with a small snippet of the DSL that we were crafting and simply said in the email: “Please check the following configurations for the client…”.
His response: “You incorrectly configured the final_costing_policy. It should be …”
In the large, the DSLs that you create are going to be read by a larger audience than just developers. So, like all good code, this DSL code should be highly readable, but not all of your audience needs to know it’s syntax in detail. You create a DSL to make your life, the developer, easier. Getting business users to understand what you are doing is part of making your life easier. Anyway, is it not about ubiquitous language and vocabulary? You can’t get closer to the domain than revealing data and behavior with a DSL, can you!?
February 19th, 2009 §
Last night, I attended the 43rd Cape Town SPIN meeting that turned out to be a fun, interactive exercise with John Gloor. John introduced a system of analysis which focused on modeling a domain – but not from and object oriented paradigm. It was more about “things” and “influences”. I am really doing a bad job of using the right terms, but let’s just try something out.
- As a group define (frame?) your problem domain (We chose “How to be a successful team”)
- Then individually…
-
- write down as many thoughts about the domain as possible – short snippets of 3-8 words each. The recommendation was to aim for about 70 thoughts.
- Color code (or group) these based on some notion of similarity.
- Give each group a name or label on a post-it
- Then as a group …
-
- the first person sticks their post-its on the wall
- each other person, in turn, then sticks their post-its up and aligns it with whatever else is already on the board (or creates a new spot altogether)
- Optimize the emerging clusters and give them names
- Finally, put directed lines between the named clusters using the guide of “A influences B” and give the line a label as well.
We never had the time to get to complete step 6. But the really interesting angle for me was that a language for the domain was emerging. It was not perfect, but it was a nice start. Secondly, some of the clusters felt a lot like strategic contexts. Sure, it was a conceptual decomposition of sorts, but it may well be a nice starting point for discovering bounded contexts.
And those influence lines felt like dependencies and interactions between contexts. The use of the word “influence” is a really nice alternative to the traditionally naive terms like “uses”, “has”, “is like”. It naturally focuses on behavioural interactions.
So, this simple exercise may be a nice technique for discovering language and contexts within a domain. And it proves to me, yet again, that language is most critical. This is not just about maintaining a lifeless glossary of terms – but the energy surrounding the vocabulary and terms need to be depicted and felt as well. And if we combine all of this with an agile mindset, we can adjust this “language model” with each iteration and gain deeper domain understanding continuously. Hmmm, this notion of “language model” is intriguing!