Agile Cat — in the cloud

単純/安価/高速 : .NET から Node + Heroku に乗り換えた Playtomic

Posted in .Selected, API, Research by Agile Cat on October 24, 2012

Simpler, Cheaper, Faster: Playtomic’s Move from .NET to Node and Heroku
http://wp.me/pwo1E-54r

Monday, October 15, 2012 at 9:15AM
http://highscalability.com/blog/2012/10/15/simpler-cheaper-faster-playtomics-move-from-net-to-node-and.html

_ highscalability

This is a guest post by Ben Lowry, CEO of Playtomic. Playtomic is a game analytics service implemented in about 8000 mobile, web and downloadable games played by approximately 20 million people daily. Here’s a good summary quote by Ben Lowry on Hacker News:

Playtomic が提供する分析サービスは、2000万の人々が毎日のようにプレーする、モバイル/Web/ダウンロードを前提とした、約 8000 種類のゲームにインストールされたものである。以下は、Ben Lowry が Hacker News で発言した、きわめて明快な概要である:

Just over 20,000,000 people hit my API yesterday 700,749,252 times, playing the ~8,000 games my analytics platform is integrated in for a bit under 600 years in total play time. That’s just yesterday. There are lots of different bottlenecks waiting for people operating at scale. Heroku and NodeJS, for my use case, eventually alleviated a whole bunch of them very cheaply.

20,000,000人以上の人々が、昨日は 700,749,252回も、私の API にアクセスした。その解析プラットフォーム上の、8000弱のゲームをプレーすることは、600年分の時間を費やすに等しくなる。 ただし、それは、昨日の利用だけに過ぎない。 大規模スケールに取り組む人々にとって、それぞれのボトルネックが、たくさんの位置に存在している。 私のユース・ケースにおいては、最終的に Heroku と NodeJS が、きわめて低コストで、その多くを緩和している。

Playtomic began with an almost exclusively Microsoft.NET and Windows architecture which held up for 3 years before being replaced with a complete rewrite using NodeJS.  During its lifetime the entire platform grew from shared space on a single server to a full dedicated, then spread to second dedicated, then the API server was offloaded to a VPS provider and 4 – 6 fairly large VPSs.   Eventually the API server settled on 8 dedicated servers at Hivelocity, each a quad core with hyperthreading + 8gb of ram + dual 500gb disks running 3 or 4 instances of the API stack.

NodeJS を用いて完全に書き換えられる以前の Playtomic は、Microsoft の .NET と Windows のアーキテクチャを、ほとんど排他的な形式で、3年も採用してきた。この  プラットフォーム全体は、専用のシングル・サーバー上の共有スペースから、専用の分散サーバーへと成長してきた。 そして、さらに、API サーバーは、4~6 社の大手 VPS 上へと、均等にオフロードされた。 最終的に、この API サーバーは、Hivelocity が提供する 8台の専用サーバー上に落ち着いたが。 しかし、その API スタックでは、Quad-Core のハイパー・スレッディング + 8GB の RAM + 二重化された 500 GB により、3 ~ 4 個のインスタンスを走らせるという状況であった。

These servers routinely serviced 30,000 to 60,000 concurrent game players and received up to 1500 requests per second, with load balancing done via DNS round robin.

これらのサーバーは、DNS ラウンド・ロビンを介したロードバランシングを用いて、30,000 ~ 60,000人のゲームプレイヤーに対して、コンカレントなサービスをルーチンとして提供し、また、1秒あたり 1500 のリクエストを受けている。

In July the entire fleet of servers was replaced with a NodeJS rewrite hosted at Heroku for a significant saving.

そして、この 7月には、全体的なサーバーの構成を、Heroku 上にホストされる NodeJS で、書き換え、また、リプレイスすることになった。 そして、大幅なコストの削減が実現されたのだ。

Scaling Playtomic with NodeJS

There were two parts to the migration:

Dedicated to PaaS:  Advantages include price, convenience, leveraging their load balancing and reducing overall complexity.  Disadvantages include no New Relic for NodeJS, very inelegant crashes, and a generally immature platform.

Dedicated to PaaS: アドバンテージとしては、価格/利便性/ロードバランシングの活用/全体的な複雑さの低減などが挙げられる。  ディス・アドバンテージとしては、NodeJS 用の New Relic の不在/とてもエレガントとは言えないクラッシュ/全般的に見て未熟なプラットフォームなどが挙げられる。

.NET to NodeJS: Switching architecture from ASP.NET / C# with local MongoDB instances and a service preprocessing event data locally and sending it to centralized server to be completed; to NodeJS on Heroku + Redis and preprocessing on SoftLayer (see Catalyst program).

.NET to NodeJS: ASP.NET / C# からローカルな MongoDB インスタンスへの、アーキテクチャの置き換え。 そして、ローカルでのイベント・データの処理と、処理を完了されるための、センタライズされたサーバーへの送信。具体的には、NodeJS on Heroku + Redis と、SoftLayer 上でのプリ・プロセシング( Catalyst プログラムを参照)。

< 続きは原文で ど~ぞ >

ーーーーー

image.NET と NodeJS の比較ということですが、この Playtomic のアプリケーション・モデルとビジネス・モデルにおいては、NodeJS の方が適しているという事なのでしょうね。 そして、このようなアプリケーション・モデルが、ものすごい勢いで増えてきているのだと思います。さまざまなサービスが、API という形式で提供され、さらに、それらを分析するためのプラットフォームが加わっていくわけです。こういう記事を読むと、理想的なコンピューティングが具体化しているのだと感じられますね。 image

ーーーーー

<関連>

NY の地下鉄では、スマホ・チケットの試みが始まるらしい
エンタープライズ・ソーシャルって、どう捉えたら良いの?
Apigee は、テレコムのための SDN を考える
分散オブジェクト・ストアの Basho が CloudStack に参加
次世代ビジネスとして、Data as a Platform に注目する _1

主要ソーシャル・メディアについて、年齢と性別の分布を調べてみた

Posted in Facebook, Research, Social, Tumblr, Twitter by Agile Cat on August 28, 2012

Report: Social network demographics in 2012
http://wp.me/pwo1E-4EE

August 21st, 2012 by Pingdom
http://royal.pingdom.com/2012/08/21/report-social-network-demographics-in-2012/

_ pingdom

Do you know how old the average Twitter or Facebook user is? Do you know what share of Reddit’s users are women? We could go on and on; when it comes to social network demographics, the questions are endless. This article is going to answer those questions for you, showing you the age and gender distribution on 24 of today’s most popular social networks and online communities.

あなたは、Twitter や Facebook のユーザーの、平均年齢について知っているだろうか? また、Reddit ユーザーのうち、女性はどのくらいの割合になるのか、知っているだろうか? それらについて、私たちは 調査を進めているが、ソーシャル・ネットワークの人口統計について、考えだしてしまうと切りがない。 この記事により、そうした、あなたの疑問に答えたい。そのために、いま人気の、24のソーシャル・ネットワーク・オンラインコミュニティについて、それらを構成するユーザーの、年齢や性別について分布を調べてみた。

The sites included in this survey are: Facebook, Twitter, LinkedIn, Pinterest, Tumblr, Reddit, Hacker News, Slashdot, Github, Stack Overflow, Orkut, Quora, WordPress.com, Blogger, Flickr, Myspace, Tagged, Hi5, LiveJournal, Yelp, deviantART, StumbleUpon, Goodreads and Last.fm.

この調査には、FacebookTwitterLinkedInPinterestTumblrRedditHacker NewsSlashdotGithubStack OverflowOrkutQuoraWordPress.comBloggerFlickrMyspaceTaggedHi5LiveJournalYelpdeviantARTStumbleUponGoodreadsLast.fm が含まれる。

You may note one glaring omission: Google+. Unfortunately for us there is no data on Google+ in DoubleClick Ad Planner, the Google-owned tool we used for the demographics data. Another thing we should point out is that the demographics data used in this survey is for the United States.

あなたは、Google+ の欠落に気付くだろう。 残念なことに、この人口統計データのために用いた、Google が提供する DoubleClick Ad Planner に、Google+ のデータが無いのだ。 そして、この調査で使用している統計データが、United States を対象としている点も、最初にお断りしておく。

With that out of the way, let’s dive into the data!

さあ、普段とは異なる視点から、データの海に飛び込んでみよう!

Average age distribution

If you average the age distribution across all the sites in the survey, this here below is what you end up with. You could think of it as the age distribution in the social media sphere.

この調査における、すべての対象サイトの年齢分布の平均を知りたいなら、以下のチャートを参照して欲しい。 このデータを、ソーシャル・メディアの世界における、年齢分布として捉えることができる。

More than half of these social media users are between 25 and 44 years old. This, however, was just an average. When looking at the individual sites in this survey, there are considerable differences.

ソーシャル・メディア・ユーザーの、半分以上が 25歳~44歳の間に集中している。 ただし、この値は、全体の平均に過ぎない。 そして、個々のサイトをみると、かなりの相違点があることが分かってくる。

Age distribution per site

As we just mentioned, there are big differences in the age demographics of the individual sites. You can examine all of them in the chart here below. We’ve sorted the chart by average age (more on that farther down), “youngest” site at the top.

前述のとおり、それぞれのサイトにおける年齢分布には、大きいな差異がある。 以下のチャートで、それぞれのサイトについて、確認して欲しい。 年齢層が、最も低いサイトをトップに置き、高いサイトをボトムに置いている。

This chart should make something very clear; social media is most definitely not just for the young. Some examples:

このチャートから、大半のソーシャル・メディアが、若者だけのために有るのではないという事実が見えくる。 以下に、いくつかの例を示そう。

  • 55% of Twitter users are 35 or older.
  • 63% of Pinterest users are 35 or older.
  • 65% of Facebook users are 35 or older.
  • 79% of LinkedIn users are 35 or older.

However, as you could see in the very first chart of this article, only 2% of social media users are 65 or older (averaged between the sites in this survey). There is also the flip side of the coin to consider; some sites have a considerable bias toward younger users. A few examples:

しかし、この記事の最初のチャートで見たように、ソーシャル・メディア・ユーザー全体で、65歳以上の人々が占める比率は、たった 2% に過ぎない(その値は、この調査から得られた平均値である)。 そして、コインの裏表のように、いくつかのサイトは、若年の年齢層に偏っている。 以下に、いくつかの例を示そう。

  • 58% of Reddit users are under 35.
  • 60% of Github users are under 35.
  • 63% of Hi5 users are under 35.
  • 69% of Hacker News users are under 35.
  • 69% of deviantART users are under 35.
  • 83% of Orkut users are under 35.

A couple of examples of sites with more homogenous user bases, age wise:

また、いくつかのサイトは、特定の特定の年齢層に偏っている。

  • Hacker News has almost half of its users (44%) in the 18-24 age bracket.
  • Orkut on the other hand has a massive grouping of people aged 25-34. This is so large (76%) that we suspect it may be an anomaly in the Ad Planner data. None of the other sites display such extremes.
  • More than half of DeviantART’s users are below 25.
Average user age per site

Based on the sites in this survey, the estimated age of the average social media user is just under 37 years old. Here are some other observations:

これらのサイトに関する調査をベースにすると、ソーシャル・メディア・ユーザーの平均的な年齢は、37歳を少しだけ下回っていることが分かる。 ここに、いくつかの観察ポイントがある。

  • The oldest users. LinkedIn has the oldest user base, with the average user being 44.2 years old.
  • The average Facebook user is 40.5 years old.
  • The average Twitter user is 37.3 years old.
  • The age trend for Facebook and Twitter. Compared to a previous survey we did 2.5 years ago, the age of the average Facebook user has gone up two years, while the age of the average Twitter user has gone down two years. In other words, Twitter’s user base is getting younger, while Facebook’s is getting older.

And here is the full chart with all the sites, sorted by average age:

以下のチャートは、それぞれのサイトにおける平均年齢を並べたものである。

What about gender?

This whole article so far has been about the age of people using these social networks and online communities. Now it’s time to examine the male-female ratio, or gender balance if you prefer that word.

これまでのところでは、ソーシャル・ネットワークとオンライン・コミュニティにおける、ユーザーの年齢について調べてきた。ここからは、男性と女性の比率について見ていく。 それとも、ジェンダー・バランスと言ったほうが良いのだろうか。

Based on the United States demographics data (from Ad Planner) there is a clear gender imbalance on many of these sites. Some are much more male dominated, and vice versa. However, when you look at all the data together, it becomes clear that women rule social media. More than two thirds of the sites in this survey have more female than male users. Other observations:

Ad Planner から提供される United States 人口統計データをベースにすると、大半のサイトにおいて、男女比の異なる様子が見えてくる。 あるサイトでは、男性の方がずっと多く、また、あるサイトでは、時勢の方がずっと多い。 しかし、すべてのデータを平均してみると、女性たちがソーシャル・メディアを支配している様子が明確になる。 この調査では、対象サイトの 2/3 以上で、女性ユーザーの方が多数であるという結果が出た。 また、その他の観察ポイントとしては、以下の項目がある。

  • 17 out of 24 sites (71%) have more female than male users.
  • The average gender distribution is 48.75% male, 51.25% female.
  • Most male-dominated site? Slashdot (87% males) is the standout, followed by Hacker News (77% males) and Stack Overflow (76% males). In general, the more tech-focused sites in this survey have more male users than female.
  • Most female-dominated site? Pinterest (79% females) is in a league of its own, followed by Goodreads (70% females) and Blogger (66% females).
  • Facebook and Twitter have the same gender distribution: 40% male, 60% female.

Here below is a chart with the male-female ratios for all 24 sites included in this survey. The chart is sorted, the least male-dominated sites at the top.

以下のチャートは、この調査の対象である、24のサイトにおける男女比を示している。 トップには女性が優位なサイトを置き、ボトムには男性が優位なサイトを置いている。

As you can see, the only sites in this survey with more male than female users are Quora, Reddit, Orkut, Github, Stack Overflow, Hacker News and Slashdot.

見てのとおり、男性の方が女性より多いサイトは、Quora/Reddit/Orkut/Github/Stack Overflow/Hacker News/Slashdot だけである。

Final notes

We hope you found this report interesting. It’s easy to get lost when digging through this kind of data, but we hope we managed to present it in a way that gave you a decent overview of the situation today.

このレポートに、あなたが興味を示してくれることを、私たちは望んでいる。 この種のデータをマイニングするとき、往々にして道に迷いがちになる。 しかし、今日の状況を適切に概説するための方式を、上手く提供できたはずだと思っている。

To us, one big takeaway from this report is that there’s a place for everyone in today’s social media landscape. These sites have users that span the entire age spectrum, and there really are no limits to what you can achieve online, regardless of age or gender.

私たちにとって、このレポートから得られる大きな視点とは、今日におけるソーシャル・メディアの視界の中に、すべての人々の居場所が存在するという事実である。 これらのサイトは、年齢分布の全体におよぶユーザー層を有している。そして、年齢や性別にかかわらず、オンラインで達成し得ないことは無い、という状況が見えてくる。

A note on the source data: All the demographics data in this survey is for the United States, but the patterns shown here should translate roughly to other countries as well. That said, there are regional differences, so keep that in mind if you’re applying this to other parts of the world.

Previous surveys: We did a couple of similar surveys almost three years ago (age, gender), but the results are not easy to compare since a different set of sites were used (the social media landscape has changed).

Larger charts: Average age distribution, Age distribution per site, Average age per site, Gender distribution.

Image credit: Top image background via Shutterstock.

ーーーーー

image文中にも指摘されているように、このデータはアメリカ市場のものであり、他国の状況は反映していませんし、もちろん、日本の状況も反映していません。 しかし、日本のソーシャル調査結果などと照らし合わせてみると、とても興味深い差異が浮かび上がってくるのだろと思えてきます。それにしても、これ程までに、女性ユーザーが多いとは、想像もしていませんでした。 ーーー image

ーーーーー

<関連>

Gartner の Cloud Hype Cycle 2012 で、これからの市場を占う
日本と世界のインターネット・トラフィック – 2012年/7月
Web サイト Top-1000000 の、43% が米国にホストされている
世界の Web サイト : Top-10000 の 75% を OSS が占める
アジアの MOBILE トラフィック比率が、この 2年間で 3倍に増大した!

 

f8 終了後の 24時間で、34000本の Facebook アプリが Heroku 上で量産されたというが

Posted in .Selected, Facebook, PaaS, Salesforce by Agile Cat on September 27, 2011

Facebook apps on Heroku: 34,000 in 24 hours
By
Derrick Harris Sep. 23, 2011
http://gigaom.com/cloud/facebook-devs-launch-34k-apps-on-heroku-in-24-hours/

_ Gigaom

Last week, Facebook and Heroku announced a partnership through which Facebook developers could easily launch applications on Heroku’s cloud Platform-as a Service via the Facebook development portal. That appears to have been a smart partnership for Heroku, which reports it saw more than 33,800 Facebook applications launched on its service since the social network giant unveiled new features at yesterday’s f8 conference.

先週に発表された Facebook と Heroku のパートナーシップは、Heroku の PaaS 上のアプリケーションを Facebook 開発ポータルを介して、Facebook のデベロッパーたちが容易に立ち上げていけるというものである。 このソーシャル・ネットワークの大手が、昨日(9/22)の f8 カンがレンスで、この新しい機能について発表してからというもの、実に 33,800 本以上の Facebook アプリケーションが、このサービス上で立ち上げられるのを確認したとレポートするHeroku にとって、それはスマートなパートナーシップであるように思える。

imageSalesforce.com GM of Platforms (and former Heroku CEO) Byron Sebastian ⇒

On the official Heroku blog, Adam Seligman notes “that’s more than 20 [applications] a minute. Facebook has again innovated and captured the excitement of the developer community.”

そして、Heroku のオフシャル・ブログでは、「 1分間に 20本以上のアプリケーションである。 Facebook はイノベーションを繰り返し、また、デベロッパー・コミュニティにおける興奮を手にしている 」と、Adam Seligman は指摘する。

However, in the comments to both Heroku’s post and on Hacker News, there’s some debate over whether these are “fake apps” launched to get access to the new Timeline feature. It’s difficult to tell, especially because developers don’t need to launch on Heroku to access those features, some commenters claim.

しかし、Heroku によるポストと、Hacker News でのコメントにおいて、それは、新しい Timeline 機能へのアクセスを得るために立ち上げられた、「 fake apps 」だという議論が展開されている。デベロッパーにとって、それらの機能にアクセスするために、あえて Heroku 上で立ち上げる必要がないため、その議論に甲乙をつけるのは難しいと、何人かのコメンテーターは主張している。

Assuming at least a good portion are actual applications, though, such a large number is also a ringing endorsement for PaaS, in general, which increasingly appears to ideal for developers wanting to build and launch lightweight applications. For individual developers, PaaS is a way to host an application without getting caught up in systems management or other low-level concerns. Enterprise developers get the same benefits, even if they only utilize right now for non-mission-critical Facebook or mobile applications.

一般論として考えれば、それだけの数のアプリケーションが、である、PaaS の指示を訴えることは良いことである。ライトウェイトなアプリケーションの開発と立ち上げを望む開発者にとって、それは理想に近づく一歩である。それぞれのデベロッパーにとって、 システム管理や低レベルの事柄に煩わされることなく、アプリケーションをホストするのが PaaS である。そして、Facebook アプリやモバイル・アプリといった、非ミッション・クリティカルなものに限定されるにしても、エンタープライズ・デベロッパーも同じメリットを享受できるのだ。

Related research and analysis from GigaOM Pro:

ーーーーー

TAG indexまぁ、アプリケーションが簡単かつ確実に作れるのなら、このように開発環境が整備されていくことは、歓迎すべきことなのだと思います。 それにしても、ソフトウェアを開発するための環境と、それを展開するプラットフォームが、あっという間に様変わりしてしまったように思えてなりません。 自分自身の環境に目をやって、この一年にインストールしたアプリケーションを眺めてみても、その変容ぶりは明らかです。 みなさんも同じではないでしょうか? ーーー __AC Stamp 2

ーーーーー

<関連>

Facebook の f8 関連記事 – 25本のマトメ・ページ
Facebook の Washington Post アプリを動かしてみた!
これは、Facebook – Open Graph のヘンリンなのか?
Facebook Timeline まとめページ – サンプルから論評まで

 

%d bloggers like this: