Translator Reviews ( English → Japanese )

Rating: 52 / 0 Reviews / 25 Jun 2014 at 11:35

tearz
tearz 52 プロの翻訳チームによる以下の多言語プロジェクトの対応が可能です。 英語(...
English

Right now the metadata for the currently streaming song/live dj on datafruits is updated via simple polling and ajax requests. The metadata is stored in a simple redis key, and a sinatra app with an endpoint /currentsong will return this key in JSON format. The ajax request simply polls this app every few seconds.
I'd like to use EventSource instead of polling via setInterval. I thought this would be a good opportunity to try out the new ActionController::Live feature in Rails. Luckily Aaron Patterson has a good write-up on his blog.

Japanese

現状、曲・ライブDJをデータフルーツでストリーミングするメタデータは、単純にポーリングとajaxの要求によって更新されます。メタデータは単純なredis keyに保存されていて、終点・現在の曲のsinatraアプリはこのキーをJSONフォーマットに戻します。単純にajax requestはこのアプリを数秒ごとにポーリングします。
個人的にはsetIntervalのポーリングを経由する代わりにEventSourceを使用希望します。
Railsの中の新しいActionController::Live featureを試すいい機会だと思いました。幸運なことにAaron Pattersonがブログでいいことを書いてました。

Reviews ( 0 )

There are no translator reviews yet.