Re: [Cppcms-users] Concurrent download question
Brought to you by:
artyom-beilis
From: Shiv S. D. <shi...@gm...> - 2016-03-27 08:18:37
|
The problem is that individual file will have rare downloads(usually one file will be downloaded once a month or two) and no. of downloads are large. So caching will not help. They have to be read asynchronously and concurrently. I am not sure that should I create booster::io::service or cppcms::service. Also, I find it hard to create booster::io::service as its example is not exhaustive. Even if I create booster::io::service the filesystem calls may block. I will be using GlusterFS for storage. But that is something not within CppCMS's domain so I will take care of that. Individual sizes will be ~200-300KB and few can be as large as ~20MB. Very rarely they can also be huge say ~1GB or more. I care about the small ones not the large ones. Also, how can I stream very large files i.e. serve as they are read in chunks before loading entirely in memory and support resumption of download in case of interruption. If you could provide a small example that would be a mighty help. On Sun, Mar 27, 2016 at 12:21 PM, Artyom Beilis <art...@gm...> wrote: >> The files are on filesystem. How should I do IO to ensure maximum >> concurrency? Is there any example available for this? I would be >> grateful for any help. >> > > Can you explain what exactly the issue you are having or problem you expect? > > In general CppCMS saves the files if they are big enough > using file system otherwise keeps them in memory > you can control the thresholds via config or dynamically in CppCMS 1.2. > > So what exactly the problem you expect? > > Artyom > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal |