Redis as ChunkStorage laravel-chunk-upload? #138
Replies: 3 comments 2 replies
-
not sure why would you need to store the chunks in redis? It is possible by implementing own save handler (probably needs some refactoring). Merging would be more trickier. Imho, RAM is more expensive than disk (that would be used for storing temporary chunks). Best regards, |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is the same as @syedwhizzbridge was requesting but I would like to use Redis queues to assemble the chunked parts in local storage asynchronously. This would greatly improve the stability and scalability of the uploads. |
Beta Was this translation helpful? Give feedback.
-
Hi Martin! Looking for this feature too. Want to clarify why I need it. I have AWS load balancer and multiple EC2 instances. While uploading my chunks (using dropzone) I receive them on different instances (they have separated filesystems), I also have S3 for other microservices and Redis cache. I dont' like the idea of using S3 since both chunks and file itself are needed to store temporary so Redis is best choice among those 2. So I need temp filestorage that can be accessed by all my EC2 instances I was able to implement Redis storage by implementing Basically I make this code put file contents under some specific key in Redis Then I passed it to the ChunkStorage and found out that it wont work since it needs getAdapter method to be implemented and as I get it right So I decided to make my own ChunkStorage, but still it failed since ParallelSave also didn't work, cause it requires exactly lib's ChunkStorage passed to constructor. Maybe you have some thoughts regarding it? Thanks in advance and also thanks for your project! Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Martin,
First of all, I would like to say thanks for your excellent work and secondly, I wanted to use Redis for Chunk Storage in your package can you please guide me if it's possible, Thanks
Beta Was this translation helpful? Give feedback.
All reactions