Browsing by Author "FERREIRA, MIGUEL ALVES"
Now showing 1 - 1 of 1
Results Per Page
Sort Options
- Comparing JSON and Protocol Buffers in HTTP-based REST architectures: performance and energy efficiencyPublication . FERREIRA, MIGUEL ALVES; Azevedo, Isabel De Fátima SilvaIn recent years, there has been an increasing interest in enhancing the performance of software systems. Concurrently, energy efficiency has emerged as a significant concern in this new decade [1]. This is primarily due to two factors: the correlation between higher energy consumption and increased costs [2], and the growing environmental concerns [3]. Consequently, a wide variety of good practices and patterns [2] for software systems have been developed. Furthermore, despite the extensive array of technologies available, there is an absence of prevalent utilisation of these technologies in conjunction with one another. This is despite the potential for enhanced performance and energy efficiency that such combinations could offer. One such example is the integration of Protocol Buffers with the HTTP REST architecture. It is already established that Protocol Buffers are a proven solution for enhanced performance [4]. Consequently, there is a lack of comparison of Protocol Buffers in this type of architecture with other established serialisation formats, such as JSON. The present study was thus conceived to compare Protocol Buffers to JSON in an HTTP REST architecture in terms of performance and energy efficiency, to ascertain the viability of Protocol Buffers in this ecosystem in terms of performance and energy efficiency. In order to achieve this objective, it was necessary to migrate an open-source Java project that possessed either one of the serialisation mechanisms to its counterpart. The findings indicate that, for performance metrics such as throughput and average response time, Protocol Buffers demonstrate superiority when the endpoint under evaluation requires substantial serialisation. Furthermore, with regard to energy efficiency, a similar trend is evident in cases where serialisation is more intense. In such cases, Protocol Buffers demonstrate superior energy efficiency.
