why i hate (the hype about) soa what is the soa business case? soa $$$$
TRANSCRIPT
![Page 1: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/1.jpg)
Why I hate(the hype about) SOA
What is the SOA business case?
SOA
$$$$
![Page 2: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/2.jpg)
Prelude – what is wrong with this code?
public Collection findByPattern(String namePattern) throws SQLException {
Connection conn = DriverManager.getConnection(this.url, this.username, this.password);
Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(
"SELECT name FROM name_table WHERE name like '" + namePattern + "'");
Collection result = new ArrayList(); while (rs.next()) { result.add(rs.getString(1)); } conn.close(); return result;}
![Page 3: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/3.jpg)
Summary!
• Use connection pooling!• Avoid SQL injection!• Don’t leak the bloody
connections!
Every time you leak a connection…God kills a kitten.
Please: Think of the kitten!
![Page 4: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/4.jpg)
Correct code!
public Collection findByPattern(String namePattern) {
String query = "SELECT name FROM name_table WHERE name like ?";
Object[] params = new Object[] { namePattern };
return jdbcTemplate.query(query, params, new RowMapper() {
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
return rs.getString(1); } });}
![Page 5: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/5.jpg)
Now: To the agenda of the day!
• The Promise• The Perception• The Failure• BBS architecture• Lessons learned
![Page 6: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/6.jpg)
Is SOA important?
1. “Gartner projects:‘by 2008, more than 75 percent of then-current application
packages either will be natively SOA or will expose SOA interfaces through a wrapping layer of interfaces.’” [InformationWeek]
2. The next (current?) gold rush is in B2B
![Page 7: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/7.jpg)
The incredible shape-changing SOA
Every time you look, it look different!
![Page 8: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/8.jpg)
What is SOA?
• SOA is ”A collection of Services that communicate with each other” [Cryer.com]
• ”[SOA] is an integrated software infrastructure and design approach, leveraging Web computing standards, for delivering business functions as shared and reusable services.” [sun]
• ”SOA is web services” [unattributed]• ”blah, blah,blah, SOA is described, asynchronous,
remote, loosly coupled, orchistrated, standard-based...” [someone fairly smart]
• “Loose coupling”
![Page 9: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/9.jpg)
Fowler on SOA
“I've heard people say the nice thing about SOA isthat it separates data from process, that it combines data and process, that it uses web standards, that it's independent of web standards, that it's asynchronous, that it's synchronous, that the synchronicity doesn't matter.... “
http://martinfowler.com/bliki/ServiceOrientedAmbiguity.html
![Page 10: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/10.jpg)
Three doors marked SOA
![Page 11: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/11.jpg)
Why SOA?
• Business strategy:– Focus on service delivery (agile?)
• Technical strategy:– Focus on integration: New applications quickly, reuse old
applications
– and orchestration: Modelling the business (”even a business person can do it!”)
• Market strategy– Everything that’s good -> everything we sell (this is the SOA trap)
– Consulting services (”non-technical architects”)
– ”Gartner architecture”
![Page 12: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/12.jpg)
The SOA stack
Orchestration
Access Layer
Exposed
Source system
Validate fileSend message
to user[failed]
Wait for duedate
Check credit
[no credit]
Processpayment
Described
![Page 13: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/13.jpg)
The vendor stack (marchitecture)
BPEL, BPMN
JBI
SOAP
Source system
WSDL
A service in the SOA world seems to contain the usual layer upon layer of gunk. At the lowest level we have our meat, the bit that actually does Stuff. This can be EJB or whatnot. Next up we have BPEL (I dozed off briefly so I really don't remember how the two tie together), then above that we have that old dead horse, web services.
- The BileBlog
A service in the SOA world seems to contain the usual layer upon layer of gunk. At the lowest level we have our meat, the bit that actually does Stuff. This can be EJB or whatnot. Next up we have BPEL (I dozed off briefly so I really don't remember how the two tie together), then above that we have that old dead horse, web services.
- The BileBlog
![Page 14: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/14.jpg)
SOA: Understanding your Business
The business of SOA is the business of your business
Your essential business processesYour conceptual information model
Your value proposition
![Page 15: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/15.jpg)
Business-Focus is an Alibi
“We have to find the core value of the business... And we selected Axis as our SOA provider and WebSphere as
our application server.” - J Random SOA Architect
“Huh?!?”- Me
![Page 16: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/16.jpg)
SOA doesn't help!
What does SOA tell me about information modeling? Process modeling? For the enterprise?!
What does SOA tell me to do about this information?
Nothing!
![Page 17: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/17.jpg)
Absurdity of Stateless Microapplications
How much of your application deals with integration with external systems?
![Page 18: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/18.jpg)
The Dangers of Reuse
Building New Legacy on Top of Old Legacy
![Page 19: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/19.jpg)
The Object-Service Impedence Mismatch
Don't transparently expose your domain modelMan-years have been spent on “SOA integration layers”
![Page 20: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/20.jpg)
Orchestration: Example
Validate fileSend message
to user[failed]
Wait for duedate
Check credit
[no credit]
Processpayment
![Page 21: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/21.jpg)
Orchestration: The 21st century CASE tool?
Johannes' Golden Truths about Software Diagrams:
– Understandable diagrams can’t be used to generate
code.
– Diagrams generated from code are mostly useless.
![Page 22: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/22.jpg)
The Complexity and Inadequacy of the “Simple” Object Access Protocol (SOAP)
”The worst possible way of implementing SOA is by using web services”
- Kaare Nilsen, SOA expert, ObjectWare
WS-Adressing, WS-Security, WS-Reliability, WS-ReliableMessaging, WS-Transactions,WS-I-think-I'm-gonna-be-sick
![Page 23: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/23.jpg)
SOA's Failed Potensial: Integration
How can I integrate:• Standards-based
• Reasonably reliably• Inter-enterprise
• Bidirectional• Asynchronously
![Page 24: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/24.jpg)
Final fallacy: Firewalls
• Why do we have firewalls?• Are SOA applications secure?
• So… do we need “SOA firewalls”?
<WEB SERVICES>
![Page 25: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/25.jpg)
Conclusion
• SOA has a fairly substantial cost• Don’t use it if you don’t need it!• You probably don’t need it
• When do you need it?– If you are Amazon, ebay, or google– If your customers are paying you for it
![Page 26: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/26.jpg)
BBS architecture
Slides not to be published
![Page 27: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/27.jpg)
BBS architecture
• Background: Replacing mainframe batch applications written in COBOL with Java
• Requirements– Robustness– Security– Scability (roughly quantified)– Operatability (quanitified)– Maintainability (quantified)
![Page 28: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/28.jpg)
At a glance
Mottak ProcessingTriggered
actionRequest
Processing chain
Response Distribution
billingaccess control
domain modelrepositoryentityRepository
Database
external domain repository
Processing
otherdependency
Persistence
receipt
Service-Repository
WebController
View
onlinebilling
access control
![Page 29: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/29.jpg)
Workflow: Asynchronous Entity Service
Response Processingqueue
Database
queue
Database
Response Processing
![Page 30: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/30.jpg)
Dependency Injection
Incoming File Channel
File Adapter(infrastructure)
Icky file management stuff(ick! Ick!)
Claim check queue
FileDatabase
Adapter
File destination
Service Framework
Application service
File destination
Report service
Adapter
Integration queu
e
Print and distribution
Outgoing file adapter
External subsystem
Icky fileprotocols
Filedestination
![Page 31: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/31.jpg)
How do we get the SOA benefits?
• Integration– Standardized protocols (Bankens Standardiseringskontor,
cirka 1990…)
• Orchestration– Remove temporal coupling– Simple, static workflow– Driven by single, simple events
• Reuse– Code and design reuse (patterns)– Primarily in-process – Rocket science: method invocations…
![Page 32: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/32.jpg)
The SOA doors
SOA is everything that is good
SOA is everything we sell
SOA is integration
![Page 33: Why I hate (the hype about) SOA What is the SOA business case? SOA $$$$](https://reader036.vdocuments.mx/reader036/viewer/2022062511/551be7eb550346c3588b612f/html5/thumbnails/33.jpg)
Conclusion
• Your most pressing architectural risks are not solved by SOA
• SOA’s vision is not new• The SOA stack may not be your best bet• The vision can be archived by old technology with a new twist
for real benefits
• Build simple, robust, and for today!
• SOA might not be wrong for you, but I recommend ignoring it until you know you need it.