Dynamic Event Processing Framework for API Gateways: Optimizing Real-Time Performance
摘要
Modern event-driven microservices require API gateways capable of handling diverse and dynamic workloads with minimal latency. Traditional gateways lack mechanisms for real-time event prioritization and dynamic batching. We introduce a Dynamic Event Processing Framework (DEPF) for API gateways that processes high-priority events immediately and batches low-priority events with dynamically adjusted batch sizes and processing intervals based on system metrics. DEPF achieves significant latency reduction for high-priority events up to 43.65% compared to Traefik and over 99% compared to NGINX while maintaining high throughput and resource efficiency for low-priority workloads. Evaluations demonstrate DEPF’s improved performance in real-time, event-driven architectures, achieving latency reductions ranging from approximately 7% to over 43% compared to Traefik and from 86% to over 99% compared to NGINX across different event types.