Skip to Content
ハイパフォーマンス ブラウザネットワーキング ―ネットワークアプリケーションのためのパフォーマンス最適化
book

ハイパフォーマンス ブラウザネットワーキング ―ネットワークアプリケーションのためのパフォーマンス最適化

by Ilya Grigorik, 和田 祐一郎/株式会社プログラミングシステム社
May 2014
Beginner to intermediate
380 pages
5h 26m
Japanese
O'Reilly Japan, Inc.
Content preview from ハイパフォーマンス ブラウザネットワーキング ―ネットワークアプリケーションのためのパフォーマンス最適化

18章WebRTC

WebRTC(Web Real-Time Communication)は様々な標準やプロトコル、JavaScript APIの集合体であり、ブラウザ(ピア)間での音声・動画通信、そしてデータ共有を可能にします。WebRTCは、リアルタイム通信をシンプルなJavaScript APIを通じてすべてのWebアプリケーションが利用できる標準機能にしました。サードパーティ製プラグインや独自ソフトウェアに依存する必要はありません。

音声や動画を使ったテレカンファレンスやP2Pのデータ転送のような、リッチでハイクオリティのRTCアプリケーションを提供するには、ブラウザに多くの新機能が必要です。音声や動画の処理や、新しいアプリケーションAPI、そして半ダース程度の新たなネットワークプロトコルのサポートなどです。ブラウザは、これらのほとんどを3つの主なAPIに抽象化します。

  • MediaStream:音声や動画のストリーム取得
  • RTCPeerConnection:音声や動画の通信
  • RTCDataChannel:任意のアプリケーションデータの通信

どのWebアプリケーションでも、たった十数行程度のJavaScriptコードでP2Pデータ転送やリッチなテレカンファレンス体験を実現できます。これがWebRTCの約束と力です! しかし、これらのAPIは氷山の一角にすぎません。シグナリング、ピアの発見、接続ネゴシエーション、セキュリティなどの新たなプロトコルは、WebRTCの約束を実現するプロトコル群のほんの一部なのです。

当然ながら、WebRTCを実現するアーキテクチャとプロトコルは、接続開始のレイテンシ、プロトコルオーバーヘッド、そして配信様式などのパフォーマンス特性を決定づけます。そして、WebRTCは他のブラウザ通信とは異なり、データ転送にUDPを使用します。しかし、UDPは単なるスタート地点に過ぎません。リアルタイム通信を実現するためには、生のUDPよりもはるかに多くを必要とします。では、詳細に見ていきましょう。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ユニコーン企業のひみつ ―Spotifyで学んだソフトウェアづくりと働き方

ユニコーン企業のひみつ ―Spotifyで学んだソフトウェアづくりと働き方

Jonathan Rasmusson, 島田 浩二, 角谷 信太郎
進化的アーキテクチャ ―絶え間ない変化を支える

進化的アーキテクチャ ―絶え間ない変化を支える

Neal Ford, Rebecca Parsons, Patrick Kua, 島田 浩二

Publisher Resources

ISBN: 9784873116761Other