「おすすめ」フィードの提供
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Simon Willison Blog
Blueskyはユーザーが独自のフィードアルゴリズムを公開できる仕組みを提供する。spacecowboy氏はこの機能を用いて、任意の推薦メカニズムで投稿を整理する「For You」フィードを運用している。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
「For You」フィードの提供
Blueskyの最も興味深い機能の一つは、誰でも独自のカスタム「フィード」実装を運用し、他のユーザーに公開できる点です。これにより、投稿を推薦するために好きなメカニズムを自由に使用できるカスタムアルゴリズムが事実上可能になります。
spacecowboy氏は、約72,000人が利用するFor You Feedを運用しています。AT Protocolブログへのこの寄稿記事は、その仕組みについて解説しています。
このアーキテクチャは*魅力的*です。フィードの提供は、spacecowboy氏のリビングルームにある「ゲーミング」PC上で動作する単一のGo(プログラミング言語)プロセスによって行われており、構成は16コア、96GBのRAM、接続された4TBのNVMe(ストレージインターフェース)ストレージです。
推薦は「いいね」を基にしています。つまり、あなたと同じものを好きがる人は、プラットフォーム上で他に何をいいねしているのか?という問いかけです。
そのGo(プログラミング言語)サーバーはBlueskyのfirehose(ストリームデータ)を消費し、関連する詳細情報をSQLite(データベース)に保存します。現在約419GBのSQLiteストレージを使用しており、過去90日分の関連データを保持しています。
パブリックインターネットのトラフィックは、OVH上の月額7ドルのVPS(仮想プライベートサーバー)が処理しており、Tailscale(ネットワーク接続ツール)を介してリビングルームサーバーと通信します。
現在の総コストは月額30ドルです。電気代が20ドル、VPS(仮想プライベートサーバー)が7ドル、ドメイン名2つ分で3ドルです。spacecowboy氏は、既存のシステムは動作を確認した最も安いアルゴリズムに切り替えた場合、約100万人のBlueskyデイリーアクティブユーザーすべてを処理できると見積もっています。
タグ: go, scaling, sqlite, software-architecture, tailscale, bluesky
原文を表示
Serving the For You feed
One of Bluesky's most interesting features is that anyone can run their own custom "feed" implementation and make it available to other users - effectively enabling custom algorithms that can use any mechanism they like to recommend posts.
spacecowboy runs the For You Feed, used by around 72,000 people. This guest post on the AT Protocol blog explains how it works.
The architecture is *fascinating*. The feed is served by a single Go process using SQLite on a "gaming" PC in spacecowboy's living room - 16 cores, 96GB of RAM and 4TB of attached NVMe storage.
Recommendations are based on likes: what else are the people who like the same things as you liking on the platform?
That Go server consumes the Bluesky firehose and stores the relevant details in SQLite, keeping the last 90 days of relevant data, which currently uses around 419GB of SQLite storage.
Public internet traffic is handled by a $7/month VPS on OVH, which talks to the living room server via Tailscale.
Total cost is now $30/month: $20 in electricity, $7 in VPS and $3 for the two domain names. spacecowboy estimates that the existing system could handle all ~1 million daily active Bluesky users if they were to switch to the cheapest algorithm they have found to work.
Tags: go, scaling, sqlite, software-architecture, tailscale, bluesky
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み