Big files should not be parsed with io.Readfile as it'll be stored in memory. Situation becomes even worse when above file is being requested by multiple users in parallel. You will endup with multiple copies of file in memory and will eventually crash due to insufficient memory.
Big files should not be parsed with io.Readfile as it'll be stored in memory. Situation becomes even worse when above file is being requested by multiple users in parallel. You will endup with multiple copies of file in memory and will eventually crash due to insufficient memory.