Optimizing your code

…Having a working web service is great, but ultimately what…the consumer cares about is how quickly and efficiently it runs.…In this video, we're going to look at some basic techniques…for optimizing Java code in general and web services in particular.…But, before we get too far into this, it's important to…discuss when, why and to what extent you should optimize codes.…It's easy to assume that all optimization is good.…After all, why would anyone want a program to run slower?…However, there are some significant disadvantages to optimization.…

The main issue to consider is that optimization…almost always makes code harder to understand and maintain.…Logical, intuitive, step-by-step algorithms are rarely efficient…and fast algorithms are rarely clear or understandable.…Given that one of the biggest advantages…of a web service is that it doesn't have to be a final product…and can be easily updated from the server side, this is an important down side.…The time saved due to optimization must be carefully weighted against…

Resume Transcript Auto-Scroll

Author

Released

2/28/2014

Most Java EE APIs are presentation-oriented. But there's another category of service-oriented features that provide data and other services to mobile and desktop "rich" applications. This course explores web services: the concepts, syntax, commands, and tools that allow you to communicate and share data between applications. Author Patrick Royal explores protocols like SOAP and REST and shares simple programming tips for writing web services that are as efficient as possible. He also reveals his favorite extensions for increasing the compatibility of your services. This course includes a series of hands-on practice activities (challenges) that let you test your understanding along the way.

Topics include:

What are Java EE web services?

Creating a simple service

Building, packaging, and deploying your service

Understanding the basic syntax

Working with WSDL (Web Service Definition Language)

Exploring SOAP (Simple Object Access Protocol)

Exploring the syntax and design of REST (Representation State Transfer)