Node.js
Avancé
Streaming large file uploads to S3 without buffering in memory

Type d'évaluation

Mise en situation réelle

Analyse

Intelligence Artificielle

Compétences ciblées

nodejs
streaming
s3
upload
memory

Scénario Technique

Context An API endpoint receives video file uploads that are buffered entirely in memory before being saved, causing frequent OutOfMemory crashes on large files. The Problem The current implementation uses multer with memoryStorage, loading the full file into a Buffer before any processing. Constraints Stream the upload directly to Amazon S3 using the AWS SDK v3 Upload class. Use multer with a custom storage engine or pipe the raw request stream. Never buffer the entire file in memory. Expected Deliverable An Express endpoint streaming file uploads directly to S3 using piped streams, with no full in-memory buffering regardless of file size.

Prêt à évaluer ce talent ?

Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.

Commencer le Défis
    Node.js - Streaming large file uploads to S3 without buffering in memory | Défi Technique & Recrutement — CodeDuel