scholarly journals Performance comparison of programming interfaces on the example of REST API, GraphQL and gRPC

2021 ◽  
Vol 21 ◽  
pp. 356-361
Author(s):  
Mariusz Śliwa ◽  
Beata Pańczyk

The article presents a comparison of the performance of three ways of implementing programming interfaces used in web applications - REST, GraphQL and gRPC. For the purposes of the research, three applications were developed, which were made in each of the indicated technologies and with the same functionalities. The applications were used for performance tests carried out with the use of the k6 tool. The applications are used to measure the execution time, performance and volume of processed data during display and adding operations. The obtained results allowed for the conclusion that the best interface in terms of performance (measured as the number of transactions per second) and server response time is REST. However, in terms of the smallest data volume, gRPC is the best choice.

2021 ◽  
Vol 19 ◽  
pp. 121-125
Author(s):  
Marcin Grudniak ◽  
Mariusz Dzieńkowski

The aim of the work was to compare two technologies for creating server applications based on the JavaScript programming language. For the purposes of the research, two test applications were created. The first one was built on the basis of the Express programming framework and the second one on the basis of the Hapi framework. The client part of both applications was prepared using the React library. The client and server parts communicated with each other by means of REST API – the universal HTTP interface. The client application sent requests to the server application which then performed basic operations on the MongoDB basis and returned the result. As part of the work, an experiment consisting of four scenarios was developed. In each scenario, a different type of data was taken into consideration: a string of characters, an array, an object and an array of objects. The research focused on the efficiency aspect – measuring the response time of requests during GET, POST, PUT and DELETE operations. The tests were performed on two computers and the measurements were made in two ways: using a single code embedded in test applications and using the Postman tool. The obtained results, after averaging and analyzing them allowed for the conclusion that the Express framework proved to be more efficient than Hapi due to the shorter response time of requests. Only in the scenario where operations with large datasets were performed was the response time of requests at a similar level.


Author(s):  
Faried Effendy ◽  
Taufik ◽  
Bramantyo Adhilaksono

: Substantial research has been conducted to compare web servers or to compare databases, but very limited research combines the two. Node.js and Golang (Go) are popular platforms for both web and mobile application back-ends, whereas MySQL and Go are among the best open source databases with different characters. Using MySQL and MongoDB as databases, this study aims to compare the performance of Go and Node.js as web applications back-end regarding response time, CPU utilization, and memory usage. To simulate the actual web server workload, the flow of data traffic on the server follows the Poisson distribution. The result shows that the combination of Go and MySQL is superior in CPU utilization and memory usage, while the Node.js and MySQL combination is superior in response time.


2020 ◽  
Vol 16 ◽  
pp. 309-316
Author(s):  
Mateusz Mikuła ◽  
Mariusz Dzieńkowski

The aim of the study was to compare the performance of two data exchange styles commonly used in web applications, i.e. REST and GraphQL. For the purposes of the study two test applications were developed containing the same functionalities, one of which was REST and the other one was GraphQL. They were used for performance tests done with the help of the JMeter tool, during which measurements of the total processing time of requests and the volume of data downloaded and sent were performed. An experiment was developed that tested the basic operations found in most network services: display, add, update, and delete data. The most attention was devoted to the information display operation in the case of which load tests were done. On the basis of performed studies and obtained results, no differences in performance during the operation of adding, editing and deleting data by applications based on REST API and GraphQL were found. During the display operation under heavy load conditions and while downloading small portions of data, the service using GraphQL had a better performance. When downloading large portions of data, the REST-based service exhibited a higher performance.


2021 ◽  
Vol 19 ◽  
pp. 95-99
Author(s):  
Marcin Górski ◽  
Wojciech Andrzej Piwowarski ◽  
Mariusz Dzieńkowski

The article presents a comparative analysis of popular ASP.NET Core MVC and Symfony 4 frameworks. Two web applications, containing the same functionalities and acting as a simple system for managing articles, were implemented in these technologies. The applications underwent time performance tests during typical operations performed by means of a simple form such as entering, editing, viewing and deleting data. These actions were performed automatically using commands from the Puppeteer library. The listed operations were repeated 10, 100 and 1,000 times in order to obtain precise mean times. On the basis of the obtained results, it was difficult to clearly state which of the compared programming tools is better. The ASP.NET Core MVC framework coped much better with two time-consuming operations, i.e. entering and editing data. Its results in this regard (the average from 1,000 repetitions) were respectively approximately 28% and 25% better compared to the Symphony 4 framework. However, for the two less time-consuming operations, i.e. displaying and deleting articles, the Symphony 4 framework proved to be considerably better. Its results with regard to displaying and deleting articles (the average for 1,000 measurements) were respectively 15% and 36% lower compared to the other of the tested frameworks.


2020 ◽  
Vol 14 ◽  
pp. 78-81
Author(s):  
Vadym Borys ◽  
Roman Slezenko ◽  
Beata Pańczyk

The goal of the article is to choose the most efficient user interface creation tools possible for Spring. The study compares 4 selected view technologies: JSP,  Thymeleaf, Wicket and Angular. Time and memory performance tests were carried out using Rest API in Spring. Test results allowed to identify the best solutions.


Author(s):  
Y-M Han ◽  
K-G Sung ◽  
J W Sohn ◽  
S-B Choi

This article presents a control performance comparison of electrorheological (ER) fluid-based valves between cylindrical and plate configurations. After identifying Bingham characteristics of chemical starch-based ER fluid, an analytical model of each valve is established. In order to reasonably compare valve performance, design constraint is imposed by the choosing the same electrode gap and length, and each ER valve is manufactured. Valve performances such as pressure drop and response time are then evaluated and compared through analytical model and experiment. In addition, a time-varying pressure tracking controllability of each ER valve is experimentally realized.


Author(s):  
Ágnes Bogárdi-Mészöly ◽  
Zoltán Szitás ◽  
Tihamér Levendovszky ◽  
Hassan Charaf

Author(s):  
Doru Anastasiu Popescu ◽  
Dragos Nicolae

In this chapter, the authors present a way of measuring the similarity between two Web applications. For this, they define the degree of similarity between two Web applications, taking into account only the Webpages composed of HTML tags. The authors also introduce an algorithm used to calculate this value, its implementation being made in the Java programming language.


2011 ◽  
Vol 31 (5) ◽  
pp. 0531003
Author(s):  
杨海刚 Yang Haigang ◽  
宋桂林 Song Guilin ◽  
王天兴 Wang Tianxing ◽  
尤天友 You Tianyou ◽  
常方高 Chang Fanggao

Energies ◽  
2020 ◽  
Vol 13 (10) ◽  
pp. 2509 ◽  
Author(s):  
Kamran Shaukat ◽  
Suhuai Luo ◽  
Vijay Varadharajan ◽  
Ibrahim A. Hameed ◽  
Shan Chen ◽  
...  

Cyberspace has become an indispensable factor for all areas of the modern world. The world is becoming more and more dependent on the internet for everyday living. The increasing dependency on the internet has also widened the risks of malicious threats. On account of growing cybersecurity risks, cybersecurity has become the most pivotal element in the cyber world to battle against all cyber threats, attacks, and frauds. The expanding cyberspace is highly exposed to the intensifying possibility of being attacked by interminable cyber threats. The objective of this survey is to bestow a brief review of different machine learning (ML) techniques to get to the bottom of all the developments made in detection methods for potential cybersecurity risks. These cybersecurity risk detection methods mainly comprise of fraud detection, intrusion detection, spam detection, and malware detection. In this review paper, we build upon the existing literature of applications of ML models in cybersecurity and provide a comprehensive review of ML techniques in cybersecurity. To the best of our knowledge, we have made the first attempt to give a comparison of the time complexity of commonly used ML models in cybersecurity. We have comprehensively compared each classifier’s performance based on frequently used datasets and sub-domains of cyber threats. This work also provides a brief introduction of machine learning models besides commonly used security datasets. Despite having all the primary precedence, cybersecurity has its constraints compromises, and challenges. This work also expounds on the enormous current challenges and limitations faced during the application of machine learning techniques in cybersecurity.


Sign in / Sign up

Export Citation Format

Share Document