I am looking for best practices for receiving zip or text files via DRF based REST based API:
small files < 1MB to be stored on the file system (with authentication of course)
traffic will start at 25 to 100 clients a day growing later
What responses do I send back?
Any Performance issues that I will have to think about?
How do I verify the multipart files are actually received without corruption?
Top comments (1)
-rw-rw-rw
). Eg:80dbf74f-8b72-40b1-ab62-7bd155188bc2
β/file/in/a/directory.txt
.After a few thousand users (or well, concurrent connections), you will likely need multiple servers. Do not attempt to use sequential numbering and IDs. Use multiple servers to their full extent. Use randomness and agree on a pseudo-random value.
This is more of a high-level overview of how I would personally perform it, as opposed to an actual implementation. The tl;dr is: don't over-complicate stuff, use the platform, and make documentation for what you're doing.