Professional Documents
Culture Documents
REST SOAP Kiama Muchemi
REST SOAP Kiama Muchemi
Abstract
This research is a comparative study of Representational State Transfers (REST) and Simple Object Access
protocol (SOAP). The research is an objective experimental study that investigates how REST compares to
SOAP web services in terms of performance, scalability, maintainability and extensibility. Two prototypes
one for each web service were developed that consolidate data from different sources into the same
database tables. Data from registrar of political parties of Kenya was presented from MYSQL database via
the web services in the forms of HTML, XML and JavaScript Object Notation (JSON) using the common
browsers.
On average from the experiments performed in this research, Performance results indicated by the amount
of time taken to pull data from the server and the memory required to finish the process, shows that SOAP
web services takes approximately over one and half times memory required by REST and about 3 times the
amount of time needed to fetch the same data from the same database table. However scalability measured
via throughput values (Kbps) against number of users accessing the same data at the same time, indicates
that both REST and SOAP scale almost evenly but with REST having a slightly higher throughput with the
increase in number of users.
web for concurrent information access has marks software architecture pattern (in
This research which is a case of Registrar of communications protocol and in virtually all
political parties, the body charged with the cases; the HyperText Transfer Protocol
before going for elections in Kenya has used REST and SOAP uses a simple HTTP-based
Web service technologies (REST and protocol that enables users to contact the
SOAP) to collect data / information from message broker through a Web browser by
comma separated values (CSV), Text files Uniform Resource Locator (URL) or by
REST framework
HTTP
Client Service
Option 2: A RESTful service provides a client library Clients see methods with parameters
Figure 3: show RESTful web services need table compared SAOP which needs over one
by far less amount of memory to fetch the and half times of memory to fetch the same
same amount of data from the same database amount of data in bytes.
USER SAMPLES
Figure 5: shows the throughput in bytes per both REST and SOAP scale almost evenly
second as the number of users connecting to but with RESTful web service having a
the server increase. The graph indicates that
4.2 Impact to the potential users REST has also demonstrated high degree of
The usage of web service technologies will scalability with increasing number of users
be of great assistance in providing sanity accessing the system at the same time;
and a solution to the registrar of political REST has a slightly higher throughput with
parties problems of registering genuine and the increase in number of users compared to
parties. REST has proved to be very In terms of complexity REST API accesses
efficient in data consolidation from different data directly from the database tables while
sources into a common database and data SOAP requires a soap server, WSDL and a
access with improved performance and soap client to access the same data from the
REST and SOAP differ in context and Future research may address security and
usage; SOAP is a protocol web service the analytical bit of the captured data,
SOAP and REST web service technology Platforms, Languages, and systems. To
service. Measuring quality attributes of web (REST) which basically means that each
performance measurement and REST APIs havent been around for long
benchmarking of web services have been and their APIs are definitely modern for
analyzed. However, most approaches do not creating most of the web services [6].