Skip to main content
Version: 1.0.x

Production Overview

Deploying Lunar.dev in production ensures seamless API traffic management, enhanced security, and optimized performance at scale. With features like real-time monitoring, quota enforcement, and fail-safe mechanisms, Lunar.dev helps maintain efficient operations even during traffic spikes or system failures.

How is Production Different?​

In production environments, handling high traffic volumes, ensuring data security, and minimizing downtime are crucial. Lunar.dev’s production settings are designed to scale and optimize performance while securing communications. These configurations allow you to manage demanding API workloads efficiently and reliably.

Key Resources for Production Setup:​

  • System Requirements: Ensure your infrastructure meets the necessary CPU, memory, and OS requirements for smooth operation.

  • Core Settings: These include mTLS, SSL, and Path Parameters configurations, providing flexibility and security. These settings ensure your API traffic is structured and encrypted, with features like mutual authentication between the client and server and customizable URL patterns to efficiently manage API endpoints. Although not all settings are mandatory, they are highly recommended for secure and optimized traffic management.

  • Failsafe Mechanism: Reroutes traffic automatically during system failures to prevent downtime, ensuring high availability for your applications.

  • Metrics Setup: Track and monitor real-time performance metrics with tools like Grafana and Prometheus. This helps you stay on top of system performance and diagnose any potential issues quickly.

  • Lunar.dev Pro Multiple Gateways: For high-volume production environments, Lunar.dev Pro allows you to run multiple gateway instances simultaneously. This ensures incoming API traffic is efficiently distributed, maximizing performance and resilience. With Redis integration, you can manage shared state between gateway instances, while mTLS ensures secure, encrypted communication between components.