Falcon v3.0.0-b2 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b1 Documentationwe would soon find our application crumbling under load. Let’s thus implement response caching in Redis, utilizing aioredis for async support: pip install aioredis We will also need to serialize response need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We are going to perform caching in Falcon Middleware. Again, note0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.1.1-b3 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationour application crumbling under load. Let’s mitigate this problem with response caching. We’ll use Redis, taking advantage of aioredis for async support: pip install aioredis We will also need to serialize need access to a Redis server. Apart from just installing Redis server on your machine, one could also: • Spin up Redis in Docker, eg: docker run -p 6379:6379 redis • Assuming Redis is installed on the the machine, one could also try pifpaf for spinning up Redis just temporarily for uvicorn: pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again0 码力 | 378 页 | 1.29 MB | 1 年前3
共 20 条
- 1
- 2













