Web Services Best Practices

19 Tuning Web Services 19-1 19 Tuning Web Services The following sections contain Oracle best practices for designing, developing, and deploying WebLogic Web Services applications and application resources: ■ Section 19.1, Web Services Best Practices ■ Section 19.2, Tuning Web Service Reliable Messaging Agents ■ Section 19.3, Tuning Heavily Loaded Systems to Improve Web Service Performance

19.1 Web Services Best Practices

Design and architectural decisions have a strong impact on runtime performance and scalability of Web Service applications. Here are few key recommendations to achieve best performance. ■ Design Web Service applications for course-grained service with moderate size payloads. ■ Choose correct service-style encoding for your wepservice application. ■ Control serializer overheads and namespaces declarations to achieve better performance. ■ Use MTOMXOP or Fast Infoset to optimizing the format of a SOAP message. ■ Carefully design SOAP attachments and security implementations for minimum performance overheads. ■ Consider using an asynchronous messaging model for applications with: – Slow and unreliable transport. – Complex and long-running process. ■ For transactional Service Oriented Architectures SOA consider using the Last Logging Resource transaction optimization LLR to improve performance. See Section 13, Tuning Transactions . ■ Use replication and caching of data and schema definitions to improve performance by minimizing network overhead. ■ Consider any XML compression technique only when XML compressiondecompression overheads are less than network overheads involved. ■ Applications that are heavy users of XML functionality parsers may encounter performance issues or run out of file descriptors. This may occur because XML parser instances are bootstrapped by doing a lookup in the jaxp.properties 19-2 Performance and Tuning for Oracle WebLogic Server file JAXP API. Oracle recommends setting the properties on the command line to avoid unnecessary file operations at runtime and improve performance and resource usage. ■ Follow JWS Programming Best Practices in Getting Started With JAX-WS Web Services for Oracle WebLogic Server. ■ Follow best practice and tuning recommendations for all underlying components, such as Section 10, Tuning WebLogic Server EJBs , Section 18, Tuning Web Applications , Section 12, Tuning Data Sources , and Section 14, Tuning WebLogic JMS .

19.2 Tuning Web Service Reliable Messaging Agents