[Paper Review] SOAP vs REST: Comparing a master-slave GA implementation
This paper compares SOAP and REST in the context of a master-slave genetic algorithm (GA) implementation, evaluating performance in distributed computing. Using Perl-based web services, the study finds that REST outperforms SOAP in execution time due to reduced XML verbosity and faster message parsing, with REST completing the GA in 15.05 seconds versus SOAP’s 31.03 seconds under the same 20-generation, 50-individual configuration.
In this paper, a high-level comparison of both SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) is made. These are the two main approaches for interfacing to the web with web services. Both approaches are different and present some advantages and disadvantages for interfacing to web services: SOAP is conceptually more difficult (has a steeper learning curve) and more "heavy-weight" than REST, although it lacks of standards support for security. In order to test their eficiency (in time), two experiments have been performed using both technologies: a client-server model implementation and a master-slave based genetic algorithm (GA). The results obtained show clear differences in time between SOAP and REST implementations. Although both techniques are suitable for developing parallel systems, SOAP is heavier than REST, mainly due to the verbosity of SOAP communications (XML increases the time taken to parse the messages).
Motivation & Objective
- To evaluate the performance efficiency of SOAP and REST in distributed computing environments, particularly for parallel evolutionary algorithms.
- To address the lack of empirical comparison between SOAP and REST in the context of service-oriented genetic algorithms.
- To determine whether the verbosity of SOAP's XML-based messaging impacts execution time in master-slave architectures.
- To assess the suitability of each web service paradigm for implementing distributed evolutionary computation systems.
- To provide practical insights into when to prefer REST (lighter weight) over SOAP (more structured but heavier) in service-oriented algorithm design.
Proposed method
- Implemented a master-slave genetic algorithm (GA) using both SOAP and REST web services in Perl.
- Used a fitness function f(x,y) = 1 + sin(√(x²+y²))/√(x²+y²) with a known optimum at (0,0), requiring 10⁻⁶ accuracy.
- Applied standard GA operators: bitstring encoding, two-point crossover (80% rate), bitflip mutation (20% rate), and fitness proportionate selection (40% rate).
- Configured the GA with a population size of 50, 20 generations, and tested with 10 and 50 individuals to assess scalability.
- Deployed both SOAP and REST services on a client-server model, measuring execution time and solution accuracy.
- Used the OPeAL framework (Open Platform for Evolutionary Algorithms) for service orchestration and distributed execution.
Experimental results
Research questions
- RQ1How do SOAP and REST compare in terms of execution time when implementing a master-slave genetic algorithm?
- RQ2Does the verbosity of SOAP’s XML-based messaging significantly increase parsing and communication overhead in distributed GA systems?
- RQ3Can REST be effectively used to implement stateful, distributed evolutionary computation tasks requiring coordination between master and slave processes?
- RQ4To what extent do performance differences between SOAP and REST depend on the number of individuals and generations in the GA?
- RQ5In what scenarios is the additional complexity of SOAP justified over the simpler, faster REST approach for evolutionary algorithm deployment?
Key findings
- The REST implementation completed the 20-generation, 50-individual GA in 15.05 seconds, while the SOAP version took 31.03 seconds, demonstrating a 51.5% performance advantage for REST.
- Both SOAP and REST achieved high accuracy—0.999976 ± 0.000003 for REST and 0.999867 ± 0.000101 for SOAP—confirming both are effective for finding the global optimum.
- The performance gap is primarily attributed to the overhead of XML parsing in SOAP, which is more verbose and computationally heavier than REST’s lightweight data transfer.
- The client-server experiment confirmed the same trend: REST was faster due to reduced message size and parsing cost compared to SOAP.
- REST is better suited for bandwidth-constrained or performance-critical environments due to its simplicity and lower latency.
- SOAP supports asynchronous processing and stateful operations, making it more appropriate for complex, reliable, and secure distributed workflows, despite higher overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.