A Glimpse to Scalable LLM Architectures: Building Real-Time Sentiment Analyser with Kafka and FastAPI

In today's digital world, the real-time generation and analysis of data, particularly on social media platforms, are becoming increasingly important. This study aims to design and evaluate a scalable architecture for a scenario where multiple users simultaneously perform sentiment analysis. Two different architectures were examined in the study: the Basic Architecture and the Proposed Architecture. The Basic Architecture processes and responds to user requests directly using FastAPI and Gunicorn. In contrast, the Proposed Architecture employs FastAPI, Kafka, and Redis to create a more complex and distributed structure. Test results demonstrate that the Proposed Architecture offers higher throughput and lower response times under high demand and user loads. This study presents significant findings on how to establish a scalable and high-performance infrastructure for large language models.

Authors

Institutions

Publication Details

Published
2024-10-26
DOI
https://doi.org/10.1109/ubmk63289.2024.10773494
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Glimpse to Scalable LLM Architectures: Building Real-Time Sentiment Analyser with Kafka and FastAPI

Yunus Emre Gündoğmuş, Uzay Çetin
Network Security and Intrusion Detection
article

A Glimpse to Scalable LLM Architectures: Building Real-Time Sentiment Analyser with Kafka and FastAPI

Yunus Emre Gündoğmuş, Uzay Çetin
article en

Abstract

In today's digital world, the real-time generation and analysis of data, particularly on social media platforms, are becoming increasingly important. This study aims to design and evaluate a scalable architecture for a scenario where multiple users simultaneously perform sentiment analysis. Two different architectures were examined in the study: the Basic Architecture and the Proposed Architecture. The Basic Architecture processes and responds to user requests directly using FastAPI and Gunicorn. In contrast, the Proposed Architecture employs FastAPI, Kafka, and Redis to create a more complex and distributed structure. Test results demonstrate that the Proposed Architecture offers higher throughput and lower response times under high demand and user loads. This study presents significant findings on how to establish a scalable and high-performance infrastructure for large language models.

Galatasaray University (TR)
Sustainable cities and communities
Openalex Percentile: Top 74%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.