---
title: "Will Slow Requests in API Gateway Affect Other Requests? - API7.ai"
description: "APISIX does not compromise the response time of other normal requests due to the extended response time of certain requests."
url: "https://api7.ai/blog/slow-requests-in-api-gateway"
---

[Blog](https://api7.ai/blog)

[Products](https://api7.ai/category/products)[Technology](https://api7.ai/category/technology)[Ecosystem](https://api7.ai/category/ecosystem)[Case Study](https://api7.ai/category/usercase)[Team & Community](https://api7.ai/category/community)

Search

⌘ + K

[Blog](https://api7.ai/blog)

Technology

# Will Slow Requests in API Gateway Affect Other Requests?

December 30, 2023

[Technology](https://api7.ai/category/technology)

A frequently discussed concern in the realm of API gateways is the ability to efficiently handle a substantial number of concurrent requests. Specifically, the question arises: **will slow requests significantly increase the response time of other normal requests in the API gateway?**

The answer is that [APISIX](https://api7.ai/apisix) excels in this regard, demonstrating that the slow requests do not adversely impact other normal requests. However, for API gateway products based on different languages and software architectures, the performance may not be as favorable.

Various programming languages exhibit varying degrees of affinity towards concurrent software architectures. Early programming languages such as C and [Fortran](https://en.wikipedia.org/wiki/Fortran), designed primarily for single-processor systems, possess limited support for concurrency. However, with the advent of multiprocessor and multithreading environments, newer languages like [Java](https://github.com/apache/apisix-java-plugin-runner) and [Python](https://github.com/apache/apisix-python-plugin-runner) incorporate more robust concurrency and parallel processing capabilities. Languages like [Go](https://github.com/apache/apisix-go-plugin-runner) were even designed with concurrency in mind, tightly integrating their concurrency models with language features. The support for concurrency in a programming language not only reflects the technological environment during its inception but also anticipates its intended application scenarios.

![Coroutine and thread](https://static.api7.ai/uploads/2023/12/29/WlL3vGqI_coroutine\&thread2.jpg?imageMogr2/format/webp)

Assuming thousands of concurrent requests, utilizing a multithreading or multiprocessing architecture (as seen in Java or Python) necessitates the allocation of thousands of threads or processes to manage request contexts. Those familiar with computer programming understand that, even if a majority of threads remain idle, the operating system incurs hardware resource consumption in maintaining thousands of threads or processes. However, using coroutines (as in APISIX and Golang), additional threads or processes are not required despite a surge in concurrent requests.

Coroutines, threads, and processes all represent approaches to multitasking but exhibit key differences:

1. **Scheduling Mechanism:** Thread/process scheduling is preemptive, and managed by the operating system (OS), meaning the OS decides when to interrupt and switch to another thread or process. Conversely, coroutine scheduling is cooperative, driven explicitly by programmers or language libraries. Coroutines need to relinquish control explicitly to facilitate switching to other coroutines.
2. **Overhead:** Threads/processes, being at the operating system level, incur higher resource requirements for creation, switching, and termination. Conversely, coroutines operate in user space, resulting in relatively lower overhead for creation, switching, and termination.
3. **Data Sharing and Synchronization:** Inter-thread/process data sharing necessitates complex synchronization operations, such as mutex locks, read-write locks, semaphores, etc., to prevent data race conditions. Coroutines, being within the same thread, can directly share global variables without the need for intricate synchronization.

![Connection among coroutine, thread and process](https://static.api7.ai/uploads/2023/12/29/F6zNN9uM_img_v3_026j_6abeb19f-f406-4625-8b9a-f08e65fa321g.jpg?imageMogr2/format/webp)

In the world of APISIX, slow requests merely involve waiting for upstream responses, a process limited to listening for network events without incurring additional system resource overhead. In conclusion, **APISIX does not compromise the response time of other normal requests due to the extended response time of certain requests.**

Tags:

[Latency](https://api7.ai/tags/latency)

[APISIX Basics](https://api7.ai/tags/apisix-basics)

Share article link

Share

Related Posts

[![Simplified Log Collection with APISIX's http-logger Plugin](https://static.api7.ai/uploads/2024/04/11/Zod2vE0f_http-logger-cover.png)](https://api7.ai/blog/apisix-http-logger-plugin)

## [Simplified Log Collection with APISIX's http-logger Plugin](https://api7.ai/blog/apisix-http-logger-plugin)

[![Microservices HA: API Governance with APISIX](https://static.api7.ai/uploads/2024/12/25/njZdgMBk_apisix-api-governance.png)](https://api7.ai/blog/enhance-high-availability-with-api-governance)

## [Microservices HA: API Governance with APISIX](https://api7.ai/blog/enhance-high-availability-with-api-governance)

## Related Posts

[![What's New in ADC 0.11 & 0.12?](https://static.api7.ai/uploads/2025/01/21/vI79UK0t_adc-0.11-0.12.png)](https://api7.ai/blog/adc-0.11-and-0.12)

Technology

August 7, 2024

#### [What's New in ADC 0.11 & 0.12?](https://api7.ai/blog/adc-0.11-and-0.12)

ADC versions 0.11 and 0.12 optimized support for Apache APISIX and its features, enhancing configuration management and GitOps efficiency.

[ADC](https://api7.ai/tags/adc)

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[![3 Tips for Deploying APISIX in Kubernetes (Part 2)](https://static.api7.ai/uploads/2024/05/07/5oXyr34X_deploy-apisix-in-k8s.png)](https://api7.ai/blog/3-tips-for-deploying-apisix-in-k8s-2)

Technology

May 7, 2024

#### [3 Tips for Deploying APISIX in Kubernetes (Part 2)](https://api7.ai/blog/3-tips-for-deploying-apisix-in-k8s-2)

Discover how to optimize Apache APISIX deployment in Kubernetes, enhancing API service stability and performance through health checks and monitoring.

[Kubernetes](https://api7.ai/tags/kubernetes)

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[![Regular API Testing: Ensuring API Gateway Stability and Efficiency](https://static.api7.ai/uploads/2024/04/12/KxwkXy3P_api-testing.png)](https://api7.ai/blog/best-practices-for-api-testing)

Technology

April 12, 2024

#### [Regular API Testing: Ensuring API Gateway Stability and Efficiency](https://api7.ai/blog/best-practices-for-api-testing)

In the digital age, APIs play a crucial role, but they also require maintenance and checks to ensure stability and security.

[APISIX Basics](https://api7.ai/tags/apisix-basics)
