Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rails 8で作るActivityPub リレーサーバ
Search
S.H.
December 05, 2024
680
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rails 8で作るActivityPub リレーサーバ
RubyWorld Conference 2024 Sponser LT
S.H.
December 05, 2024
More Decks by S.H.
See All by S.H.
Termfront: Ruby標準ライブラリだけで作るFPS
gamelinks007
1
130
Ruby on Bare Metal
gamelinks007
0
120
Ecosystem on parse.y
gamelinks007
0
840
ゆるゆるMastodon 鯖缶生活
gamelinks007
0
830
1週間で作るActivityPubリレーサーバ
gamelinks007
0
200
Developing an ActivityPub Relay with Rails 8
gamelinks007
0
130
Mastodon on Ruby master
gamelinks007
0
220
Trying to Make Ruby's Parser Available as a Gem
gamelinks007
1
910
ユーザーから見たLrama
gamelinks007
0
280
Featured
See All Featured
From π to Pie charts
rasagy
1
380
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
540
Amusing Abliteration
ianozsvald
1
320
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
560
A better future with KSS
kneath
240
18k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
610
Evolving SEO for Evolving Search Engines
ryanjones
0
300
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
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を建てなく てよい