Skip to main content
Version: Next

Flows Components

To take full advantage of Lunar.dev Flows' capabilities, you'll need to understand its core elements.

Lunar.dev Flows use a modular framework, allowing for precise control over API traffic. API Streamsโ€”both requests and responsesโ€”are segmented into sub-streams using filters based on parameters like URL, HTTP method, or headers. This segmentation ensures focused traffic management.

Processors operate on streams, performing tasks such as rate limiting, modifying traffic, or generating responses. Flows are collections of processors connected in sequence through from and to definitions, creating flexible traffic control pipelines.

This modular approach allows flows to call other flows, enabling scalable, customizable API management that adapts to evolving traffic needs. By structuring traffic into reusable components, Lunar.dev Flows ensure efficient, secure, and adaptable API consumption strategies.