Keywording.ai
completed2024-11-29
- backend
- Laravel
- Laravel Octane
- Swoole
- Workflows
- API Design
Product.
keywording.ai — a service for automated description of stock images. The system uses AI to analyze photos and generate metadata (titles, tags and keywords) that meets the requirements of stock agencies.
Technical details.
Architecture and Runtime. The server side is implemented as a Laravel API. To ensure high performance and fast response times under load, Laravel Octane was used in combination with Swoole. This allowed for efficient use of server resources and reduced request processing times due to long-lived processes.
Data Processing and Workflows. The image analysis and AI model interaction process is built through a workflows system. This ensured reliability during long task chains: upload, object recognition, description generation and final tag validation. This approach allows for easy scaling of parallel processes and guarantees data consistency in case of failures.
API and Integrations. A scalable API was designed for frontend-to-server interaction. Batch processing mechanisms were implemented, allowing users to work efficiently with large image collections.
Billing and User Dashboard. Server-side logic for managing user balances and tokens was implemented. The system tracks resource consumption during tag generation and provides a transparent history of operations in the user dashboard.
Administration Tools. Internal mechanisms for monitoring queue status and managing user data were developed, simplifying the maintenance and development of the service.