A Performance and Scalability Evaluation of Monolithic (Django) vs. Microservice (FastAPI) Architectures for Asynchronous API Workloads in Python

2026

Жабық қол жеткізу Метадеректер (CSL-JSON)
DOI 10.1109/icecco67619.2026.11488798
Деректер сенімділігі 70 орташа
Бұл баға қалай есептеледі

Ол жазбаның өзінің тексерілетін белгілерінен құралады: мақаланың DOI-і бар ма, оның деректерін қанша тәуелсіз дереккөз растады, міндетті өрістер толтырылған ба және соңғы растау қаншалықты жаңа. Дереккөздер арасындағы алшақтық пен идентификатордың болмауы бағаны төмендетеді. 80-нен бастап мән жазбаның қосымша тексерусіз жарияланғанын, 60-тан 79-ға дейін — оның сенімділігі төмен күйде жарияланғанын және қолмен тексеру ұсынылатынын білдіреді. Редактор қолмен тексерген жазбаны қайта есептеу 90-нан төмен түсірмейді. Бұл — мақаланың өзіне емес, ол туралы деректерімізге берілген баға.

Аңдатпа

As few empirical performance comparisons of modern Python web frameworks exist, it is hard to choose an appropriate architecture under real I/O-bound workloads. This study compares a monolithic back-end implemented with Django, a popular framework implementing the model-view-template software design pattern, with a microservice back-end built using FastAPI. Running load tests using Apache JMeter inside a Docker container indicated a several-fold improvement in performance with the microservice architecture. FastAPI, in a microservice architecture, yielded more than 6 times the throughput of the monolithic Django architecture: 67.8 req/sec versus 10.1 req/sec. Additionally, FastAPI had a significantly lower average latency with the same 0.00% error rate. The empirical results of this work show that for I/O-bound applications, a modern asynchronous microservice architecture can provide much better performance and scalability than a customary monolithic architecture.