01
2024 - 2026
Primary Owner
File & Media Service
Production Multi-tenant SaaS
A file-processing vertical for an enterprise CRM. I owned the service work across upload validation, asynchronous scanning and thumbnailing, bulk deletion, and Nginx media serving; the surrounding platform was a team effort.
Implementation
- Used presigned Ceph S3 uploads; the core service confirmed object existence and validated file type before emitting processing work.
- Built Go workers for streamed ClamAV scanning and WebP thumbnail generation with libvips, pdfium, and FFmpeg.
- Implemented fixed-delay retry at 30 seconds with a maximum of five attempts, then surfaced terminal failure rather than silently dropping work.
- Used chunked bulk-deletion dispatching (500 items per chunk) to protect worker memory and the message broker.
- Served derived media through an Nginx sendfile path instead of routing reads through Go or a database.
Result / learning
- Measured roughly 1 ms thumbnail serving with server-side curl loopback; browser latency is naturally higher because of network and TLS.
- Separated expensive processing from serving, so media reads did not consume application-server capacity.
- Made high-volume deletion bounded rather than loading an unbounded work list into memory.