Technostock Images
Product image processing pipeline.
This service discovers product images on the FTP server by product ID, generates optimized sizes, uploads them to Amazon S3, and stores processing state in the database. Work is executed asynchronously via Queues and can be queried through simple HTTP APIs.
Key features
- FTP discovery by product ID (matches files that contain the given ID).
- Image resizing (aspect-ratio safe) and JPG output.
- Uploads to S3 with public URLs organized under the product ID.
- Queue-backed processing with retries/timeouts and idempotent re-runs.
- Processing status and resulting CDN URLs persisted in the database.
Image sizes
- thumb: 150×150
- medium: 500×500
- large: 1200×1200
APIs
POST /api/process-image: queue processing for a list of product IDs.POST /api/get-status: fetch processing status and CDN image URLs by product ID.
Both endpoints expect JSON body: {"productIds": ["12345", "67890"]}