TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What is Snapchat spending $400M in hosting costs on?

6 点作者 NPegasus超过 8 年前
According to Snap&#x27;s IPO filing, they have a 5 year contract with Google Cloud Services with a minimum spend of $400 million per year.<p>The $400 million is just for Google Cloud and doesn&#x27;t include salaries or anything else. It&#x27;s also their biggest expense by far, nearly half of their budget.<p>I just don&#x27;t get what they could spend $400 million per year on for hosting. That&#x27;s $33 million per month. What components do they use?<p>- Basic database tasks (users, friends, postings, etc.)<p>- Storage of photos and videos<p>- Bandwidth of photos and videos<p>- Maybe some computing for resizing photos and videos (one time per each)<p>- A little bit of big data processing for advertising targeting<p>Database is cheap, especially with caching. Storage is dirt cheap, especially since everything gets deleted within a few days. Outbound bandwidth at Google Cloud&#x27;s standard pricing is around $100K per petabyte, inbound bandwidth is free. Google Cloud CDN adds another $20K per petabyte. And those are standard prices, which Snapchat is getting a steep discount on (source: common sense + they mention that in the filings).<p>I&#x27;m pretty sure the face detection for filters is done locally on the user&#x27;s device (since it appears in realtime). Combining the filter with the raw video is probably also done locally, or could be. Pretty much all processing like filtering or sorting postings could be done locally; it&#x27;s not like some web apps where you have to use app or web servers to do a bunch of pre-processing of the data.<p>Yeah, I&#x27;m just at a loss as to what they could be spending that much money on. Thoughts?

1 comment

amacalac超过 8 年前
* Database I&#x2F;O is going to be a rate of knots higher than your average web app * Bandwidth is going to be insane – 1 video sent to 10 friends = 11 times that video has to be sent. * Video processing is a really expensive operation – they&#x27;ll do more of this than you&#x27;d think * While processing could be done locally, it&#x27;ll be insanely slow compared to the cloud, and lining up expectations of iOS vs Android is a fairly complex task