All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

HTTPX Fiber Concurrency Plugin for Cross-Fiber Connection Management

By

amalinovic

8mo ago· 1 min readen

Summary

The article explains the :fiber_concurrency plugin for HTTPX, which enables connections and sessions to be used across fibers managed by a fiber scheduler, particularly useful for long-lived/persistent connections. It includes a code example showing how to use the plugin with fiber scheduling for concurrent HTTP requests and notes that this plugin is required when using the :persistent plugin.

Key quotes

· 4 pulled
The :fiber_concurrency plugin enables connections a session to be used seamlessly across fibers managed by a fiber scheduler.
This is of particular relevance if the connections are long-lived/persistent.
Note that, if you're using the :persistent plugin, this plugin is required by default.
This plugin is a requirement if you're using httpx in programs with a fiber
Snippet from the RSS feed
The :fiber_concurrency plugin enables connections a session to be used seamlessly across fibers managed by a fiber scheduler. This is of particular relevance if the connections are long-lived/persistent.

You might also wanna read