Flows Hub
The Flows Hub is your central location for managing API traffic and monitoring performance within the Lunar.dev ecosystem.
This hub lists the available flows under two main categories: Traffic Controls and Observability and Monitoring.
These flows help you efficiently manage your API traffic, enforce quotas, prioritize requests, and track key performance metrics.
Popular Flows to Explore
🗃️ Client Side Limiting Flow
2 items
🗃️ Priority Queue Flow
2 items
🗃️ Quota Management Flow
1 item
🗃️ Domain Access Control Flow
2 items
🗃️ Custom Metrics Collection
1 item
🗃️ HAR Metrics Exporter Flow
2 items
🗃️ Retry Flow
2 items
Traffic Controls
The Traffic Controls category provides comprehensive flows designed to regulate and manage API traffic. These flows ensure optimal API performance, helping you prevent overconsumption, manage high-traffic environments, and enforce access control policies.
-
This flow enforces quotas within the client-side application, regulating API consumption by limiting the number of requests that can be sent. It's ideal for controlling overuse and protecting API provider resources.
-
The Priority Queue Flow manages API requests based on their priority. It ensures high-priority traffic is processed first, with the ability to queue lower-priority requests until their time-to-live (TTL) expires.
-
This flow combines both the Client-Side Limiting Flow and Priority Queue Flow, allowing you to enforce quotas and manage traffic queues based on priority. It is particularly useful in environments with varying API needs (e.g., production vs. staging).
-
This flow enforces access rules based on domain names and custom headers, allowing you to allow or block traffic from specific domains or IPs.
Observability and Monitoring
The Observability and Monitoring category allows users to define and track custom metrics for their API operations. This section is focused on providing detailed insights into API performance, usage, and rate limits, with built-in support for exporting metrics to Prometheus for real-time analysis.
-
This flow enables users to define custom metrics to track specific API behaviors, such as request size or response times. Metrics can be customized using labels and exported to Prometheus for visualization in tools like Grafana and Datadog.