Distributing user content for scalability

Awanish - June 27, 2008 - 12:17

Hi,

I am doing a site which will have large number of user uploaded files (jpg,doc,pdf).

1) Is it required to distribute these content for performance?
2) If yes, how do we do that in linux environment?

Thanks in advance!

not "required"

Matt V. - June 28, 2008 - 19:23

It's hard to say exactly what would be required without more detail. There are lots of ways to optimize performance, but the specifics of the solution depend on budget, traffic, etc. I've heard of people hosting static files under a separate lighttpd installation or on a CDN.

--
Drupal Theme Developer’s Cheat Sheet | 45 Screencasts to Get You Kicking Ass with Drupal

By creating folder/user

Awanish - July 1, 2008 - 08:37

Sorry for the delay, but intention here is to create folder for each user.So that we don't have one directory with so much number of files.

Is that possible in Drupal, if yes how.

Some modules support

Matt V. - July 2, 2008 - 06:45

Some modules support separate directories within the /files directory for different users, so it is possible. I believe the Asset module has that capability. I would guess that some other modules do too, but I'm not sure which ones.

--
Drupal Theme Developer’s Cheat Sheet | 45 Screencasts to Get You Kicking Ass with Drupal

Thanks!

Awanish - July 3, 2008 - 05:52

Thanks matt! I have tried with imagefield and assets, they are working!!

 
 

Drupal is a registered trademark of Dries Buytaert.