Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rails 8で作るActivityPub リレーサーバ
Search
S.H.
December 05, 2024
0
520
Rails 8で作るActivityPub リレーサーバ
RubyWorld Conference 2024 Sponser LT
S.H.
December 05, 2024
Tweet
Share
More Decks by S.H.
See All by S.H.
ゆるゆるMastodon 鯖缶生活
gamelinks007
0
700
1週間で作るActivityPubリレーサーバ
gamelinks007
0
140
Developing an ActivityPub Relay with Rails 8
gamelinks007
0
75
Mastodon on Ruby master
gamelinks007
0
130
Trying to Make Ruby's Parser Available as a Gem
gamelinks007
1
460
ユーザーから見たLrama
gamelinks007
0
230
Contributing to the Ruby Parser
gamelinks007
2
1.3k
Featured
See All Featured
First, design no harm
axbom
PRO
1
1.1k
Typedesign – Prime Four
hannesfritz
42
2.9k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
45
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
210
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
68
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
130
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
710
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
190
Transcript
Rails 8 で作る ActivityPub リレーサーバ S.H. RubyWorld Conference 2024 Sponser
LT 2024-12-05
自己紹介 S.H. ESM, Inc 構文解析器研究部員 Mastodonの管理人(通称:鯖缶)
今日話すこと ActivityPub リレーについて 作った背景 作ったもの
ActivityPubリレー
ActivityPub リレーの仕組み リレーサーバに参加しているサーバの公開投稿を 受け取る 参加しているサーバ全てに受け取った投稿を転送 する
メリットとデメリット Fediverseのサーバ同士が連合しやすくなる 配送される投稿が増えるので参加サーバへの負 荷も増える リレーサーバ自体の負荷もそれなりにかかる
作った背景
現状のリレーサーバ サーバの数に対してリレーサーバの数が多くな いため、特定のリレーサーバに集中する リレーサーバ自体と参加したサーバへの負荷が かかりやすい RedisやDBなどを使うため建てるのに気合が いる
個人的な思い 小さい規模のリレーサーバを作れれば負荷も分 散できそう もっとリレーサーバを建てやすくするとよさそう
Rails8の存在 Kamal2でデプロイが簡単になる SolidQueueを使うのでRedisがいらない SQLite3を本番で使えるので楽そう Rails8で作るといいのでは?
作ったもの
ActivityPub Relay
機能 Mastodon/Misskeyのリレーに対応 Pleroma/Akkomaのリレーにも対応 購読サーバの管理画面 ジョブの管理画面
作ってみて Kamal2でのデプロイが非常に簡単 Thrusterが証明書の自動更新などがされるの で嬉しい SolidQueueを使っているのでRedisが不要で 良い SQLite3を使っているので別途DBを建てなく てよい