Welcome!

Artificial Intelligence Authors: Elizabeth White, Yeshim Deniz, William Schmarzo, Pat Romanski, Carmen Gonzalez

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
SYS-CON Events announced today that delaPlex will exhibit at SYS-CON's @ThingsExpo, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. delaPlex pioneered Software Development as a Service (SDaaS), which provides scalable resources to build, test, and deploy software. It’s a fast and more reliable way to develop a new product or expand your in-house team.
In his opening keynote at 20th Cloud Expo, Michael Maximilien, Research Scientist, Architect, and Engineer at IBM, will motivate why realizing the full potential of the cloud and social data requires artificial intelligence. By mixing Cloud Foundry and the rich set of Watson services, IBM's Bluemix is the best cloud operating system for enterprises today, providing rapid development and deployment of applications that can take advantage of the rich catalog of Watson services to help drive insigh...
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.
The 21st International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Digital Transformation, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
Existing Big Data solutions are mainly focused on the discovery and analysis of data. The solutions are scalable and highly available but tedious when swapping in and swapping out occurs in disarray and thrashing takes place. The resolution for thrashing through machine learning algorithms and support nomenclature is through simple techniques. Organizations that have been collecting large customer data are increasingly seeing the need to use the data for swapping in and out and thrashing occurs ...
SYS-CON Events announced today that DivvyCloud 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. DivvyCloud software enables organizations to achieve their cloud computing goals by simplifying and automating security, compliance and cost optimization of public and private cloud infrastructure. Using DivvyCloud, customers can leverage programmatic Bots to identify and remediate common cloud problems in rea...
SYS-CON Events announced today that Tintri, Inc, a leading provider of enterprise cloud infrastructure, 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. Tintri offers an enterprise cloud platform built with public cloud-like web services and RESTful APIs. Organizations use Tintri all-flash storage with scale-out and automation as a foundation for their own clouds – to build agile development environments...
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
SYS-CON Events announced today that Cloudistics, an on-premises cloud computing company, has been named “Bronze Sponsor” of 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. Cloudistics delivers a complete public cloud experience with composable on-premises infrastructures to medium and large enterprises. Its software-defined technology natively converges network, storage, compute, virtualization, and management into a ...
Every successful software product evolves from an idea to an enterprise system. Notably, the same way is passed by the product owner's company. In his session at 20th Cloud Expo, Oleg Lola, CEO of MobiDev, will provide a generalized overview of the evolution of a software product, the product owner, the needs that arise at various stages of this process, and the value brought by a software development partner to the product owner as a response to these needs.
SYS-CON Events announced today that Technologic Systems Inc., an embedded systems solutions company, will exhibit at SYS-CON's @ThingsExpo, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Technologic Systems is an embedded systems company with headquarters in Fountain Hills, Arizona. They have been in business for 32 years, helping more than 8,000 OEM customers and building over a hundred COTS products that have never been discontinued. Technologic Systems’ pr...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend @CloudExpo | @ThingsExpo, June 6-8, 2017, at the Javits Center in New York City, NY and October 31 - November 2, 2017, Santa Clara Convention Center, CA. Learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that Tappest will exhibit MooseFS 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. MooseFS is a breakthrough concept in the storage industry. It allows you to secure stored data with either duplication or erasure coding using any server. The newest – 4.0 version of the software enables users to maintain the redundancy level with even 50% less hard drive space required. The software func...
SYS-CON Events announced today that Outscale 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. Outscale's technology makes an automated and adaptable Cloud available to businesses, supporting them in the most complex IT projects while controlling their operational aspects. You boost your IT infrastructure's reactivity, with request responses that only take a few seconds.
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...
SYS-CON Events announced today that EARP 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. "We are a software house, so we perfectly understand challenges that other software houses face in their projects. We can augment a team, that will work with the same standards and processes as our partners' internal teams. Our teams will deliver the same quality within the required time and budget just as our partn...
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software in the hope of capturing value in IoT. Although IoT is relatively new in the market, it has already gone through many promotional terms such as IoE, IoX, SDX, Edge/Fog, Mist Compute, etc. Ultimately, irrespective of the name, it is about deriving value from independent software assets participating in an ecosystem as one comprehensive solution.
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 A&I Solutions has been named “Bronze Sponsor” of 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. Founded in 1999, A&I Solutions is a leading information technology (IT) software and services provider focusing on best-in-class enterprise solutions. By partnering with industry leaders in technology, A&I assures customers high performance levels across all IT environments including: mai...
Five years ago development was seen as a dead-end career, now it’s anything but – with an explosion in mobile and IoT initiatives increasing the demand for skilled engineers. But apart from having a ready supply of great coders, what constitutes true ‘DevOps Royalty’? It’ll be the ability to craft resilient architectures, supportability, security everywhere across the software lifecycle. In his keynote at @DevOpsSummit at 20th Cloud Expo, Jeffrey Scheaffer, GM and SVP, Continuous Delivery Busine...