Lunar Pro Multiple Gateways
Lunar.dev Pro is built to handle high-volume API traffic in production environments by providing the scalability and security needed to manage complex infrastructures.
Running multiple gateway instances concurrently offers several key benefits that directly impact the performance, resilience, and reliability of your API traffic management.
📄️ Lunar Pro Installation
To scale Lunar.dev API Consumption Gateway, you can run multiple instances concurrently. This setup ensures that traffic is balanced across the instances, enhancing both performance and fault tolerance.
📄️ mTLS with Redis Configuration
For enhanced security, Lunar Pro supports connecting to Redis using mutual TLS (mTLS). Follow these steps to configure mTLS for your Redis connection:
Why Choose Lunar.dev Pro?
- Shared State with Redis Integration:
- Managing state across multiple gateway instances can be challenging without shared infrastructure. Lunar.dev Pro leverages Redis integration to maintain a shared state between instances, ensuring that each gateway has access to real-time data.
- This shared state is essential for features like quota management, traffic control, and rate limiting across instances, allowing for consistency and coordination.
- This avoids situations where one instance enforces a limit while another does not, providing seamless traffic management.
- Scalability and Load Distribution:
- With multiple gateway instances, Lunar.dev Pro enables you to balance incoming API requests across your infrastructure. This distribution prevents traffic bottlenecks, optimizes performance, and ensures your system can handle high traffic loads with ease. When scaling applications to support more users or services, having multiple gateways ensures traffic is processed efficiently, reducing latency and improving response times.
- Fault Tolerance and High Availability:
- In a production environment, maintaining uptime is crucial. By running multiple Lunar Gateway instances, you create a fault-tolerant setup where the failure of one gateway does not disrupt overall service. If one instance encounters an issue, traffic is automatically rerouted to other instances, ensuring continuous operation and minimal disruption for your users.
- Enhanced Security with mTLS [Optional]:
- For environments where security is paramount, Lunar.dev Pro supports mutual TLS (mTLS) to encrypt communication between gateway instances and Redis. This guarantees that both the client and server authenticate each other, securing your API infrastructure from potential attacks and data breaches.
- mTLS ensures that data shared between Lunar instances and Redis remains secure, which is especially important in highly regulated industries or when dealing with sensitive API traffic.