Advanced Usage
Advanced Usage
This section covers advanced topics for customizing Laravel Queue Autoscale to fit your specific needs.
Extensibility
Implement custom business logic and scaling strategies:
- Custom Strategies - Write your own scaling algorithms
- Scaling Policies - Add cross-cutting concerns and hooks
Production
Deploy and secure your autoscaler for production environments:
- Deployment - Production deployment guide
- Security - Security policy and best practices
Contributing
Help make Laravel Queue Autoscale better:
- Contributing - Development guidelines and workflow
When to Use Custom Strategies
Custom strategies are useful when:
- You have unique business requirements not covered by the default hybrid algorithm
- You need to integrate with external systems for scaling decisions
- You want to implement domain-specific logic (e.g., cost optimization, customer tiers)
- You need to comply with specific SLA structures or regulatory requirements
When to Use Policies
Policies are ideal for:
- Logging and metrics collection
- Notifications (Slack, email, PagerDuty)
- Cost tracking and budget enforcement
- Integration with monitoring systems
- Custom validation logic
- Multi-stage approval workflows
Prerequisites
Before exploring advanced topics:
- Understand the How It Works guide
- Be familiar with Configuration options
- Have the autoscaler running successfully in your environment
Example Use Cases
- Cost Optimization: Custom strategy that scales based on AWS Spot instance availability
- Multi-Tenant SLAs: Different strategies per customer tier (premium, standard, free)
- Business Hours: Policy that enforces different min/max workers during peak vs off-peak
- Budget Enforcement: Policy that prevents scaling beyond allocated cloud budget
- Compliance: Strategy that respects data residency and processing requirements