Ask the Expert

Performance issues for Web services that pass Java objects

What are the performance issues regarding Web services that pass nested Java objects?

    Requires Free Membership to View

Web Services use XML as the language in which the Web service is called, including any parameter type information that needs to be passed to the Web service. Therefore, the client would need to extract the required information from its Objects and put them into XML in order to make the Web service call.

Without the "Web" in Web services, an SOA might support native calls, such as Java. In this case, the client could pass the objects "as is" and let the SOA manage how to get them passed to the requested service.

In this SOA scenario, the performance of nested Java objects as paramenters is dependent upon how the SOA implements the object to service call. It also depends upon deployment issues such as remoting.

To increase performance of service calls in an SOA world, it is extremely important to implement appropriately course-grained services. Having course-grained services minimizes the number of client to service calls, increasing performance over fine-grained services.

Course-grained services also allow the service to provide real business domain functionality without requiring the client to know too much about the internals of the service. This allows a much looser coupling between the client and service, providing increased flexibility. For example, it might be possible to optimize the service by reimplementing a core piece. Since the service is course-grained, the implementation of the service can change significantly without affecting the service's API.

This was first published in April 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: