High-Performance API Gateway for Microservices
Native deployment guides for Amazon Web Services. Run FluxGate on EC2, route to Lambda, and secure everything with IAM.
aws ec2 run-instances --image-id ami-0c55b159cbfafe1f0 --instance-type c6g.xlarge --security-group-ids sg-0123456789abcdef0 --key-name fluxgate-prod-2024
Deploying FluxGate on EC2
Leverage AWS Graviton processors for sub-millisecond routing. Our optimized AMI includes pre-tuned kernel parameters and zero-downtime update scripts.
The FluxGate EC2 image (ami-0f8a2c9d1e4b7a3f0) is built on Amazon Linux 2023 with systemd integration. It automatically registers with your target group upon boot and supports hot-reloading of routing tables without dropping active TCP connections.
- Auto-Scaling Group Integration Seamless health checks on /fluxgate/healthz with configurable thresholds.
- EBS Optimized Networking Pre-configured for 25 Gbps throughput on c6g and r6g instance families.
- Immutable Deployment Rolling updates via AWS Systems Manager Patch Manager with drift detection.
# fluxgate-ec2-config.yaml
region: us-east-1
instance_profile: FluxGateEC2Role
routing_mode: hybrid
tls_termination: alb
metrics_endpoint: prometheus://:9090/metrics
health_check:
path: /fluxgate/healthz
interval: 15s
timeout: 5s
Using AWS Lambda as an Upstream
Bridge synchronous REST APIs with serverless compute. FluxGate handles connection pooling, retry logic, and payload streaming to Lambda functions.
Direct Invocation
Bypass API Gateway overhead. FluxGate routes directly to arn:aws:lambda:us-west-2:123456789012:function:order-processor-v2 using the AWS SDK v2.
Low LatencyEvent Streaming
Push payloads to Lambda via asynchronous invocation with configurable SQS dead-letter queues for failed executions.
Async ProcessingConcurrency Limits
Automatic backpressure handling when Lambda reserved concurrency hits 85%. Queues requests in memory before spilling to DynamoDB.
ResilienceIAM Role Permissions for Secure Access
Principle of least privilege enforced. FluxGate requires only three core permissions to operate securely within your VPC.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction",
"lambda:GetFunctionConfiguration"
],
"Resource": "arn:aws:lambda:us-east-1:123456789012:function:fluxgate-*"
},
{
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "arn:aws:logs:us-east-1:123456789012:*"
}
]
}
Attach the FluxGateExecutionRole to your EC2 instances or ECS tasks. The policy restricts Lambda invocations to functions prefixed with fluxgate-, preventing unauthorized cross-service calls. CloudWatch Logs are automatically scoped to the /aws/fluxgate log group to maintain clean audit trails.
- Cross-Account Routing AssumeRole support for federated microservices in partner AWS accounts.
- Secrets Manager Integration Automatic credential rotation for upstream database and Redis connections.