Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WebSocketで バイナリを扱う方法 + OSTやりたくない?
Search
Kizuku
October 23, 2024
1
50
WebSocketで バイナリを扱う方法 + OSTやりたくない?
Kizuku
October 23, 2024
Tweet
Share
More Decks by Kizuku
See All by Kizuku
きのこカンファレンス開催予告! - エンジニアがこの先生きのこるには -
kizuku
0
160
WebTransportは未来の技術?
kizuku
2
1.1k
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
550
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
A designer walks into a library…
pauljervisheath
205
24k
Done Done
chrislema
182
16k
Side Projects
sachag
452
42k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
BBQ
matthewcrist
87
9.5k
The World Runs on Bad Software
bkeepers
PRO
67
11k
Transcript
WebSocketで バイナリを扱う方法 + OSTやりたくない? Fukuoka.go #20 Kizuku
Kizuku 九州工業大学 学部4年 →DeNA 好きな言語: Go X(Twitter): @Kizuku_tech 自己紹介
イベント参加/運営 Kizuku.go Gopher’s Gathering 2025/1/18 きのこカンファレンス 2025/3/9
Kizuku.go Vol.4 12/2 Mon.
WebSocketで バイナリを使う方法
WebSocketとは リアルタイム通信のプロトコル HTTP通信と比べて軽量で高速 Server-Clientのアプリケーションで広く使 われている
WebSocketで扱うデータ テキスト形式: UTF-8のテキスト JSON, プレーンテキスト バイナリ形式 画像などのデータ、Protocol Buffer
WebSocketで扱うデータ テキスト形式: UTF-8のテキスト JSON, プレーンテキスト バイナリ形式 画像などのデータ、Protocol Buffer
WebSocketで扱うデータ テキスト形式: UTF-8のテキスト JSON, プレーンテキスト バイナリ形式 画像などのデータ、Protocol Buffer
Protocol Bufferとは Googleが開発したバイナリフォーマットの データシリアライズ手法 多くのプログラミング言語でサポート Go, TypeScript, Python, C++ protoファイルによるスキーマ定義
で、何がいいの?
バイナリ形式の良さ テキスト形式と比較して データサイズが小さい
JSON: 87 bytes protobuf: 54 bytes
OSTやりたくない?
OSTとは 対話や議論を促進するための会議やワー クショップ 参加者全員が自由にアイデアや意見を持 ち寄り、ワイワイお話し!!
OSTやりたくなったよね?
Gopher’s Gathering開催!
LT(5min) × 10 セッション(20min) × 8 OST(1hour) × 2
ぜひご参加ください!!