Monday, March 31, 2008

The university SOA project

The University has been relying on mainframe for its core business for the longest time. Mainframe is essentially an One-tier architecture: the presentation, application logic, and resource management layers are all in a single tier. Mainframe could be efficient because of some obvious advantages, for example the whole system shares a single execution context, no need to publish and maintain an interface, no complex data transformations and zero client development. But they are difficult and expensive to maintain at the same time. In some case, it has become unpractical to support the mainframe system due to vendor's discontinuation of the support and lack of clear understanding of the architecture with such system.

The technology changes such as Internet, the Web, faster and fatter connection, and the demand for electronic commerce has prompted the evolutionary of distributed information systems. Over the years in our environment, there have been consistent efforts of wrapping the underlying mainframe to expose the proper interface. The latest technology implemented is Web Services. The design is mostly driven by the characteristics of the underlying systems. The bottom-up design starts out examining the existing resources and the functionality mainframe offers then wrap the existing resources and integrate their functionality into a consistent interface. Presentation layer also adapt the output of the application logic so that it can be used with the required access channels (for example UPortal with Servlet approach) and client protocols. The advantage of Web services lies in their ability to make bottom-up designs more efficient, cost-effective, and simpler to design and maintain. The communication between mainframe, the wrapper web services, the Servlet presentation layer are synchronous interactions.

Fast forward to the current state of things, the University has purchased the PeopleSoft Campus Solutions to replace the legacy mainframe system. Campus Solutions is to provide comprehensive administrative functionality for students, alumni, faculty and staff. The fit-gap/conversion effort has been in place to identify if the out of box functionality satisfy the business need, what would be the pros and cons of customization and where would the customization make sense in terms of modifying business logic or bending the software to do what business dictates.

We have been using a more standalone RPC based Web service for components integration. This is more of a point to point solution. With purchased Oracle SOA suite, we now have plenty of the ammunitions on hand to address the Enterprise integration issue (EAI). Our focus would be to integrate current systems Campus Solution, CRM, ERP and have those all talk to one centralized bus (ESB).

One important part of the SOA suite is BPEL engine for service composition. BPEL is a domain specific language; it is designed to be used to program in the large. The mainstream BPEL adopt web services as its external communication mechanism, it depends on WSDL to describe outgoing and incoming messages. In a service-oriented world, services are not used as stand alone applications. Usually they are composed into bigger processes to solve a certain problem. WS-BPEL is a common standard for how processes should be assembled based on services, and defined through WSDL. WSDL and BPEL are both XML specifications with different roles in SOA landscape. WSDL is fairly low level language, it only describe the service from provider point of view. BPEL comes into play if there is need to describe the dynamic dependency of services.

One of the first benefits we found of BPEL is to shield us from the change of Campus Solution component interface. We discovered that when exposing Campus Solution components as Web Service, the XML is really verbose. This is due to how Campus Solution drives the xml from Peoplesoft components, how the fields are generated from the page and then map back to the elements in PS. Using BPEL to map the functional data only, we greatly simplify the XML.

With Oracle SOA suite, we will be centralizing the web services management layer so we could uniformly apply security, policy, logging, testing on top of the web service. The big part of any Enterprise application development efforts are concerned with the aforementioned management issues. In addition, the ease of deployment and version control concerns ranked high on the efficiency of the SDLC.

No comments: