Developing an
ActivityPub Relay with
Rails 8
S.H.
RubyWorld Conference 2024
Sponsor LT
2024-12-05
Slide 2
Slide 2 text
Self Introduction
S.H.
ESM, Inc
Parser Club Member
Mastodon Administrator(通称:鯖缶)
Slide 3
Slide 3 text
Today’s Topic
About ActivityPub Relay
Motivation
ActivityPub Relay
Slide 4
Slide 4 text
ActivityPub Relay
Server
Slide 5
Slide 5 text
ActivityPub Relay Server
Receive public post from joined server
Rebroadcast public post to other server
Slide 6
Slide 6 text
Merits and Demerits
More fedelation for Fediverse
Server’s
Increased load to joined Fediverse
Server’s
The load on the relay server itself.
Slide 7
Slide 7 text
Motivation
Slide 8
Slide 8 text
Current Status
Relay Server out of number to
Fediverse Server’s
So, Tend to join a particular Relay
Server
Relay Server and Fediverse Server’s
on the load
Requires a lot of energy to set up
because of the use of Redis, DB, etc.
Slide 9
Slide 9 text
In my opinion
More small Relay Server need to
decentralization
More easier setup to Relay Server
Slide 10
Slide 10 text
Rails 8
Kamal 2 provide easy way to deploy
Solid Queue not use Redis
SQLite3 in production
Wouldn’t it be nice to create a relay
server in Rails 8?
Slide 11
Slide 11 text
ActivityPub Relay
Slide 12
Slide 12 text
ActivityPub Relay
Slide 13
Slide 13 text
Feature
Support Mastodon and Misskey Relay
Also support Pleroma and Akkoma
Joined Server’s Dashboard
Job Dashboard
Slide 14
Slide 14 text
Thoughts
Kamal 2 provide very easy deploy
Thruster provide auto update
certificate
Solid Queue not use Redis that very
easy way
Used SQLite3 in production that
makes easier to setup Database
Server