InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

CRISPY, a New Remoting Framework

Posted by Boris Lublinsky on Jun 03, 2009

Sections
Enterprise Architecture
Topics
Web Services ,
SOA
Tags
Services ,
Web services ,
Distributed Programming

 

In his new article entitled CRISPY Web services Sachin Mahajan discusses a new framework called CRISPY (Communication per Remote Invocation for different kinds of Services via ProxYs) - a unified API for remote invocation over a wide number of transports including: RMI, EJB, JAX-RPC, REST, XML-RPC, direct Java invocation, etc. All calls can execute synchronously or asynchronously. According to CRISPY project web site, CRISPY:

... works by using properties to configure a service manager, which is then used to invoke the remote API. CRISPY is a simple Java codebase with an API that sits between your client code and the services your code must access. It provides a layer of abstraction to decouple client code from access to a service, as well as its location and underlying implementation. The special on this idea is, that these calls are simple Java object calls (remote or local calls are transparent).

The main advantages of CRISPY are

  • .. easy to use.
  • ...minimal to configure.
  • You can call a remote method from Java object, like a local call.
  • You don't need to know, how the (remote) technology work.
  • You can easy change the technology (for example from XML-RPC to RMI).
  • The services don't know a remote-interface or a RemoteException (how RMI).
  • The parameter can be a complex object (in parts without programming a Serializabler (Marshalling) or Deserializabler (Unmarshalling)).

CRISPY also provides a fine invocation control through interceptors and/or modifiers. Interceptors can be invoked both before and after method invocation and can be used, for example, for logging, call timing, etc. Modifiers can be also invoked before or after method invocation. They can be used for transformation/extension/enrichment of invocation parameters, for example, adding security headers, transformation/extension/enrichment of execution results.

Main components of the CRISPY framework include:

 

  • ServiceManager - It is a factory to create the service.
  • Properties - To configure the Service Manager.
  • Service Interface - Plain java class.
  • Proxy/Executor - All calls from Service Interface are delegated to Proxy/Executor.

CRISPY can be also combined with other popular frameworks. A list of currently implemented integrations include SpringFramework, HiveMind (Jakarta), PicoContainer (codehaus), OSGi, AspectJ, etc.

A discussion at TheServerSide.com compares CRISPY to Apache WSIF, Spring remoting and other frameworks providing similar capabilities - a unified invocation model over multiplicity of transports.

CRISPY can be used in many cases requiring decoupling of the client code from invocation protocols and service locations.

  • This article is part of a featured topic series on SOA
An Argument on Distributed Computing by Geoffrey Wiseman Posted
Re: An Argument on Distributed Computing by Peter Veentjer Posted
New my @!%* by Richard Featherstone Posted
  1. Back to top

    An Argument on Distributed Computing

    by Geoffrey Wiseman

    Ah, another remoting framework that wants to argue with a note on distributed computing.

  2. Back to top

    Re: An Argument on Distributed Computing

    by Peter Veentjer

    I agree with you, don't treat remote objects as local ones. I have been helping a customer with performance problems, and one of the causes was a chattiness "we didn't know that object was a remote object".

    But on the other side: it is nice that if you do a remote call, no implementation specific details get in your code. That is one of the things I like about the remoting architecture of Spring for example.

  3. Back to top

    New my @!%*

    by Richard Featherstone

    In my book 3 years old ain't new

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.