Performance Evaluation of a Dynamic RESTful API Using FastAPI, Docker and Nginx

Ebenhezer Mabotha, Nkateko E. Mabunda, Ahmed Ali

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

This paper provides a performance evaluation of a dynamic RESTful API architecture suitable for IoT deployments. The framework, developed with Python's FastAPI, PostgreSQL, and Nginx and containerized with Docker, was tested for flexibility, reliability, and efficiency under various scenarios. The evaluation focused on key operational indicators such as response time, throughput, load handling, and security. Functional testing confirmed the functionality of essential API endpoints used for dynamic CRUD operations, providing consistent response accuracy. Load testing using Apache JMeter revealed that the system maintained an average response time of 95ms under moderate loads and could handle many concurrent requests with negligible performance deterioration, demonstrating its ability. The throughput remained consistent even at high traffic volumes, demonstrating its suitability for dynamic IoT applications. Security testing, aided by Nginx's rate-limiting feature, demonstrated the framework's resistance to popular threats such as SQL injection and DDoS. The results show that the dynamic API framework is ideal for expandable IoT installations, providing high availability, low latency, and responsiveness in real-time applications. These results demonstrate its capacity to handle demanding IoT scenarios while maintaining performance dependability and security. This paper provides the testing methods and performance results contributing to the framework's fit for real-world IoT use cases.

Original languageEnglish
Title of host publicationIEEE Global Energy Conference 2024, GEC 2024
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages174-181
Number of pages8
ISBN (Electronic)9798331532611
DOIs
Publication statusPublished - 2024
Event2024 IEEE Global Energy Conference, GEC 2024 - Batman, Turkey
Duration: 4 Dec 20246 Dec 2024

Publication series

NameIEEE Global Energy Conference 2024, GEC 2024

Conference

Conference2024 IEEE Global Energy Conference, GEC 2024
Country/TerritoryTurkey
CityBatman
Period4/12/246/12/24

Keywords

  • API
  • Deployment
  • Docker
  • FastAPI
  • Interface
  • IoT
  • JMeter
  • RESTful

ASJC Scopus subject areas

  • Artificial Intelligence
  • Computer Science Applications
  • Energy Engineering and Power Technology
  • Renewable Energy, Sustainability and the Environment
  • Computational Mathematics
  • Control and Optimization

Fingerprint

Dive into the research topics of 'Performance Evaluation of a Dynamic RESTful API Using FastAPI, Docker and Nginx'. Together they form a unique fingerprint.

Cite this