Results 1 to 5 of 5
-
07-24-2014, 11:59 AM #1Junior Guru Wannabe
- Join Date
- Jul 2010
- Posts
- 57
Web hosting architecture - Photo uploading / retrieving
Dear All,
I need help on planning my architecture for dating site. We are having customer who will upload their photos.
This is always going to grow. Various size of photos will added every day by registered customers.
My website is currently on Rackspace SSD VPS server using Cpanel. Since SSD space is very limited & Expensive,
I cannot used it for storing the user photos / images.
Requirement : Photos can be uploaded,Retrieved, viewed very fast like facebook. & should be scalable.
1. Option 1. - I create seperate server of ngnix [ static content ] & create the trusted network so that from main site [ VPS],
Customer photos can be stored in particular directory on seperate server... viewed with URL path
2. Option 2. - To the same VPS SSD server, attach additional Volume & create the Partition where User photos can be uploaded, retrieved
& viewed with URL path
Any advice on faster uploading, retrieving & viewing will be great help. I know we have CDN as solution however it is bit expensive
for so much space of photos...
Rgds,
-
07-24-2014, 02:42 PM #2Junior Guru Wannabe
- Join Date
- Jul 2014
- Posts
- 74
Option 1, if you can find a server that gives you a dedicated RAID-1 SATA drives you can have plenty of space and it's likely to be fast enough for your site unless it's humongous. You can also look for SATA VPS but they may be slow if you share the disk with someone doing heavy IO. You can manually scale by adding more drives, and distributing you content over them, since disk IO is the bottleneck.
What file size of image and bandwidth are you looking at anyway? There's a huge difference in required architecture between filling a 10Mbit pipe or filling 100Mbit, or if you need more than that.
Option 2 is probably expensive since those hosting company's "cloud storage" solutions are pretty high-priced since they're designed to be fairly speedy.
You can also look into AWS which is $0.03/GB/month or $0.024/GB/month for reduced availability. The higher cost may be in bandwidth.
-
07-24-2014, 02:45 PM #3Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
Option 1 gives you more flexibility.
But I would go with some type of CDN even if it costs slightly more.
-
07-24-2014, 03:58 PM #4Web Hosting Master
- Join Date
- Nov 2011
- Location
- Harrisburg, PA
- Posts
- 2,074
Either one of these options are going to introduce a significant amount of network lag. Even if you're on a private gigabit LAN, you're going to take a hit loading each and every user image over the network like that.
If you're developing the CMS yourself, have you considered setting up a separate image server on a VPS or dedicated server somewhere, then having all the image references point to that server (ie, "http://img.example.com/hfu889fjdsa.jpg")? That way, you're offloading all the image HTTP requests to another server, and you don't get the lag introduced by having your main server serve them up after a second local network hop.▐█▌Fresh Roasted Hosting :: High-performance Harrisburg web hosting since 2012!
▐█▌"The only thing better than the world's best customer service is never needing them in the first place."
▐█▌Shared :: VPS :: Reseller :: Dedicated :: Co-Location :: SSL Certificates
-
07-25-2014, 04:54 PM #5How Can I Help You Today?
- Join Date
- Oct 2002
- Location
- Langley, BC
- Posts
- 2,045
How busy is your site? Using S3 with S3QL file system cost you 3 cents per GB. But I would recommend moving your server to AWS as well, using their SSD powered EC2.
With that you have an "unlimited" disk storage over S3, it is dynamic disk and grow by itself. You'll never run out of space.
Then the lag will be minimal. If you use Reserved Instance on 3 year contract heavy usage, the price of the EC2 instance can drop very significantly as well.██ We Have Generated Over 7 Million cPanel Backups Come Dance Together With Us Y'all!
██ Offer Your Own Backup Hosting Service - SiteAutoBackup.Com (Private Label / WHMCS Ready)
██ WebHostingBusinessBook.Com | YouTube.com/WebHostingTutorial | NowOpenOnline.Com
Similar Threads
-
Web-hosting panels architecture comparison
By Bugs_Moran in forum Hosting Software and Control PanelsReplies: 2Last Post: 04-09-2010, 02:23 AM -
Click here to get Web hosting so good, the system's architecture has been patented!
By flatlyimpressed in forum Shared Hosting OffersReplies: 0Last Post: 05-02-2006, 12:04 PM -
Click here to get Web hosting so good, the system's architecture has been patented!
By flatlyimpressed in forum Shared Hosting OffersReplies: 0Last Post: 09-28-2005, 02:41 AM -
Web Hosting Architecture
By nchheda in forum Web HostingReplies: 4Last Post: 10-03-2003, 07:39 PM