Welcome!

Artificial Intelligence Authors: Carmen Gonzalez, Bob Gourley, Yeshim Deniz, Pat Romanski, Elizabeth White

Related Topics: Artificial Intelligence, Microservices Expo

Artificial Intelligence: Article

JavaOne 2008: SOA, SCA, REST and Comet Discussed

Even though 'Service' comes first in SCA, it doesn't feel like it was designed to build a SOA

DeCare Systems Ireland Blog

Even though 'Service' comes first in SCA (Service Component Architecture), SCA is a distributed component model. It's about designing components (and composites) rather than designing services. It doesn't feel like it was designed to build a SOA. It feels like its main goal was to define a distributed component model. And as we all
know, the distributed component models failed in the past. I think SCA will too.



For the second day of JavaOne my schedule contained technical sessions and BoFs about mostly SOA, SCA, REST and Comet.

SCA

I attended two more sessions about SCA:
- Open-Source SOA with SCA and Apache Tuscany
- Open Standards for SOA and Java technology

The second one was a panel session. The host was MC David Chappell of Chappell and Associates and the panellists were David Chappell of Oracle, Mike Edwards of IBM, Steve Jones of Capgemini UK, Patrick Leonard of Rogue Wave, Mark Little of RedHat, Sanjay Patil of SAP AG, Michael Rowley of BEA Systems, Inc., Scott Vorthmann of TIBCO Software Inc., and Peter Walker of Sun Microsystems, Inc.

My first comment is about the name of the panel: It was all about SCA, so why was it not in the title of the session? I think people find a catchy name first and then they come up with the content…

I remember, the first time I read about SCA in late 2005 (a series of articles from IBM, I think), I had the same feeling that I had today: I think SCA is an attempt from Java EE (then-J2EE) vendors to find another way to sell their containers (sorry… “runtimes”) and development tools after the decline of bloated application servers.

Even though “Service” comes first in “SCA (Service Component Architecture)“, SCA is a distributed component model. It’s about designing components (and composites) rather than designing services. It doesn’t feel like it was designed to build a SOA. It feels like its main goal was to define a distributed component model. And as we all know, the distributed component models failed in the past. I think SCA will too.

SCA promises component reusability. However, one of the dangers that I saw today was reliance to a single vendor’s runtime. I haven’t tested it personally but the panelists’ answers made it clear that there’s no guaranteed portability between vendors’ runtimes. It is clearly said that “SCA is about interoperability and not about portability”. Not to mention .NET, which doesn’t support SCA. So, it’s mainly a Java thing. I know one can write components in JavaScript and even in BPEL but in JavaOne, it’s about Java, right :). Not sure who would like to write a component in JavaScript.

How real is SCA? I have only seen or heard of a few case studies. And I found it odd that, among the panelists, Steve Jones was the only one developing a production application using SCA. His comments showed why one can get easily confused about what SCA really is. He said that SCA helps in organizing the development teams and operations. And it was also said that it’s an architectural and operational technology. But I’m sure SCA didn’t start with this intent. Maybe, it’s trying to fit a niche now but a technology won’t succeed by getting away from the developers. Furthermore, the concept of an SCA module that can export and import other modules is very similar to OSGi’s. So, if you’re looking for modularity in Java, I’d recommend OSGi just as if you’re looking for Web Services, I’d recommend Resource-Oriented RESTful Web Services.

These sessions attracted a lot of people, the halls were completely full. And it is encouraging that the people I talked to at the end of the sessions were as skeptical as I was. I think, as an industry, we’re adopting an increasingly pragmatic approach to new technologies and techniques. How can’t it be that way? 24 hours ago, we attended a talk about the case study of a grid-enabled SOA capable of handling 35 million transactions without SCA, JBI, BPEL, WSDL etc. Another question that came to my mind was: Why haven’t we had case studies about SCA or JBI? I have a few more sessions to attend until the end of JavaOne… We’ll see…

RESTful SOA

The technical session entitled “It’s All About the SOA: RESTful Service-Oriented Architecture at Overstock.com” was my only one about REST (Representational State Transfer) today. And it was a case study presented by Ian Robertson and Sean Landis.

Overstock.com started, probably like most of the now-big companies who built their business on the Web, with a monolithic, quickly put together code. It was written in C. This reminded me of my first Web development days in 95-96 when we used to do CGI development in C. I can’t say “Good Old Days!” because the days are much better now. At least at work :).

Overstock.com is a Utah-based online retailer. It was founded in the late 90s under the name Discounts Direct and underwent a name change in 1999. They used the Web to sell surplus and returned merchandise.

When it was time to improve their system, they switched to Java and then to a SOA. Their main motivations to put in place a modular service oriented architecture were:

- To use web services
- To better isolate some sensitive data
- Facilitate concurrent development across various teams

They also had a Web site for mobile clients that could take advantage of common services.

As part of their analysis, they looked at various underlying technologies to build their SOA on:

- Java RMI: It was a simple option but it had poor support for load balancing and failover.
- JERI (Jini Extensible Remote Invocation): It was too complicated
- Web Services: They were ideal for a Web development house. However, like many others, Overstock.com found SOAP and WS-* too heavy, therefore REST looked very promising.

REST stands for Representational State Transfer and it started as the PhD dissertation of Roy Fielding, who is also one of the principal authors of the HTTP specification. It is a style not a standard. It is a set of design criteria but not an architecture. And its main concept is to fully use HTTP rather than using only one of its actions as a mere envelop to pass XML data. This idea includes using HTTP methods such as GET, POST, PUT, DELETE and HEAD as they were intended to be used, at first, when a bunch of scientists were using by-then-non-public Web to collaborate. Even though it’s back to basics, this constitutes a major mindset-shift in programming for the Web because most of the Programmable Web isn’t used the same way as we browse the Web using a browser.

The presenters continued their talk by explaining the architectural style of REST (Client-server, layered, stateless, cacheable) and the importance of the concept of Resource. A resource is some data that can be held on a support and represented as a data stream when it’s requested. This can be an image, a document, the result of a computation etc. A resource has to have a URI, therefore the target of a URI is a resource. One of the beauties of a resource accessible by a URI is that the URI can map to different representations of the same data. For example, if the current temperature of Cork (Ireland) is requested, the response can be a text saying “Rainy, 15″ or an image of a rain cloud with “15″ printed on it.

REST has some principles and best practices:

- A URI for each resource
- Logical URIs over physical ones. For example it’s better to have:
http://www.decaresystems.ie/services/java/perftuning
rather than:
http://www.decaresystems.ie/services/java/perftuning.html
- Nouns, not verbs are used as part of the URI (http://www.example.com/java/jdk/version)
- GET has no side-effect on the system, it doesn’t cause any modification etc. The client “gets” some data, that’s all. Therefore GET is a safe action.
- To link responses to other requests by using links in the responses.
- To minimize the use of query string
- “/” represents concepts like “parent/child” or “whole/part
- Gradual unfolding: A resource representation should contain links to get more details.
- GET is the method to use when the client needs a resource representation, not the POST method.

In the RESTful world, the SOAP-based Web Services are called Big Web Services. The matrix below compares them:

RESTful web servicesBig Web Services
Baseline StandardsHTTP, URI, XMLWSDL, SOAP, WS-*
ConformanceInternet StandardsWS-I
Web PhilosophyUse what the Web does wellUse the Web as a transport
DocumentationHuman orientedComputer oriented
OverheadLowMedium
Ease of useEasy to programHard without tool support

Going back to Overstock.com: They are an agile development house. They wanted to use Java SE to develop Web Applications without magic. They favored simplicity and performance (cut off the fluff: SOAP). The deployment of their application became extremely simple as well just by using a simple Servlet container. They adopted Restlet as their REST framework. Furthermore, as part of their internal development framework, they extended it and they contributed back their additions.

I’m going to open a bracket about Restlet here, because it really deserves it. Restlet is a REST framework in Java created by Jérôme Louvel and first released publicly at the end of 2005. He developed the first version of his framework that was going to become Restlet, on top of the Servlet API. Then, he decided to bypass the Servlet API and developed the first Restlet connector that issued direct REST uniform calls. Later he split the Restlet project in two:
- Restlet API: Generic classes
- Noelios Restlet Engine: Reference implementation, server and client connectors, etc.
Today, Restlet provides a solid ground to build RESTful Java applications.

So, in Overstock.com, they adopted REST but they had to spend some effort to create the mental shift to Resource-oriented architecture. And they found that testing and team coordination (including release and deployment coordination) became very important.

Some lessons learned:

- SOA has a cost of adoption. The project team needs to be educated.
- Resource-orientation and REST require a different mindset (compared to the traditional Web App development). Richardson and Ruby’s RESTful Web Services book was the required reading (It is an excellent book. If you’re in Web development, I definitely recommend it).
- Looking back, they think they should have done a better job on the business analysis.
- Version management has always been a challenge.

More Stories By Yagiz Erkan

Yagiz Erkan is lead Technical Architect, DeCare Systems Ireland, since 1998, and has over 10 years industry experience. He is also the development champion within the company and is responsible for guiding and directing the technical evolution of the software development processes at DSI. He manages an architectural group who ensure that the most up to date and suitable practices are utilized, leading to the delivery of high quality applications and solutions.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
Bert Loomis was a visionary. This general session will highlight how Bert Loomis and people like him inspire us to build great things with small inventions. In their general session at 19th Cloud Expo, Harold Hannon, Architect at IBM Bluemix, and Michael O'Neill, Strategic Business Development at Nvidia, discussed the accelerating pace of AI development and how IBM Cloud and NVIDIA are partnering to bring AI capabilities to "every day," on-demand. They also reviewed two "free infrastructure" pr...
With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo 2016 in New York. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as "IoT-Ready" as it can be! Internet of @ThingsExpo, taking place June 6-8, 2017, at the Javits Center in New York City, New York, is co-located with 20th Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry p...
New competitors, disruptive technologies, and growing expectations are pushing every business to both adopt and deliver new digital services. This ‘Digital Transformation’ demands rapid delivery and continuous iteration of new competitive services via multiple channels, which in turn demands new service delivery techniques – including DevOps. In this power panel at @DevOpsSummit 20th Cloud Expo, moderated by DevOps Conference Co-Chair Andi Mann, panelists will examine how DevOps helps to meet th...
With billions of sensors deployed worldwide, the amount of machine-generated data will soon exceed what our networks can handle. But consumers and businesses will expect seamless experiences and real-time responsiveness. What does this mean for IoT devices and the infrastructure that supports them? More of the data will need to be handled at - or closer to - the devices themselves.
Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market across the USA and Europe, we work with a variety of customers from emerging startups to Fortune 1000 companies.
Financial Technology has become a topic of intense interest throughout the cloud developer and enterprise IT communities. Accordingly, attendees at the upcoming 20th Cloud Expo at the Javits Center in New York, June 6-8, 2017, will find fresh new content in a new track called FinTech.
The age of Digital Disruption is evolving into the next era – Digital Cohesion, an age in which applications securely self-assemble and deliver predictive services that continuously adapt to user behavior. Information from devices, sensors and applications around us will drive services seamlessly across mobile and fixed devices/infrastructure. This evolution is happening now in software defined services and secure networking. Four key drivers – Performance, Economics, Interoperability and Trust ...
Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more business becomes digital the more stakeholders are interested in this data including how it relates to business. Some of these people have never used a monitoring tool before. They have a question on their mind like “How is my application doing” but no id...
SYS-CON Events announced today that Interoute, owner-operator of one of Europe's largest networks and a global cloud services platform, has been named “Bronze Sponsor” of SYS-CON's 20th Cloud Expo, which will take place on June 6-8, 2017 at the Javits Center in New York, New York. Interoute is the owner-operator of one of Europe's largest networks and a global cloud services platform which encompasses 12 data centers, 14 virtual data centers and 31 colocation centers, with connections to 195 add...
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm.
SYS-CON Events announced today that Juniper Networks (NYSE: JNPR), an industry leader in automated, scalable and secure networks, will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Juniper Networks challenges the status quo with products, solutions and services that transform the economics of networking. The company co-innovates with customers and partners to deliver automated, scalable and secure network...
The age of Digital Disruption is evolving into the next era – Digital Cohesion, an age in which applications securely self-assemble and deliver predictive services that continuously adapt to user behavior. Information from devices, sensors and applications around us will drive services seamlessly across mobile and fixed devices/infrastructure. This evolution is happening now in software defined services and secure networking. Four key drivers – Performance, Economics, Interoperability and Trust ...
In his keynote at @ThingsExpo, Chris Matthieu, Director of IoT Engineering at Citrix and co-founder and CTO of Octoblu, focused on building an IoT platform and company. He provided a behind-the-scenes look at Octoblu’s platform, business, and pivots along the way (including the Citrix acquisition of Octoblu).
SYS-CON Events announced today that Hitachi Data Systems, a wholly owned subsidiary of Hitachi LTD., will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City. Hitachi Data Systems (HDS) will be featuring the Hitachi Content Platform (HCP) portfolio. This is the industry’s only offering that allows organizations to bring together object storage, file sync and share, cloud storage gateways, and sophisticated search an...
@GonzalezCarmen has been ranked the Number One Influencer and @ThingsExpo has been named the Number One Brand in the “M2M 2016: Top 100 Influencers and Brands” by Analytic. Onalytica analyzed tweets over the last 6 months mentioning the keywords M2M OR “Machine to Machine.” They then identified the top 100 most influential brands and individuals leading the discussion on Twitter.
The Internet of Things is clearly many things: data collection and analytics, wearables, Smart Grids and Smart Cities, the Industrial Internet, and more. Cool platforms like Arduino, Raspberry Pi, Intel's Galileo and Edison, and a diverse world of sensors are making the IoT a great toy box for developers in all these areas. In this Power Panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists discussed what things are the most important, which will have the most profound e...
@ThingsExpo has been named the Most Influential ‘Smart Cities - IIoT' Account and @BigDataExpo has been named fourteenth by Right Relevance (RR), which provides curated information and intelligence on approximately 50,000 topics. In addition, Right Relevance provides an Insights offering that combines the above Topics and Influencers information with real time conversations to provide actionable intelligence with visualizations to enable decision making. The Insights service is applicable to eve...
Multiple data types are pouring into IoT deployments. Data is coming in small packages as well as enormous files and data streams of many sizes. Widespread use of mobile devices adds to the total. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will look at the tools and environments that are being put to use in IoT deployments, as well as the team skills a modern enterprise IT shop needs to keep things running, get a handle on all this data, and deli...
SYS-CON Events announced today that Grape Up will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct. 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company specializing in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market across the U.S. and Europe, Grape Up works with a variety of customers from emergi...
SYS-CON Events announced today that T-Mobile will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on ...