SabaKore

Home / Articles / Use cases

What to Know Before Setting Up a Decentralized Social Network Server

The mechanism that connects you to other servers becomes both load and responsibility. This article covers estimating the specs you need, your responsibility if you accept other people, and what to do when you shut down.

Ren, a junior infrastructure engineer

Ren

I want to set up my own social network server! I can do that on a VPS, right?
Procura, a cloud AI robot who explains

Procura

You can. But this use differs greatly from other self-hosted ones. Since it's constantly connected to other servers, the load isn't decided by how you alone use it.

You don't decide the load

With a system that connects to other servers, you aren't the one who decides the load. If someone's post spreads widely, the processing for it reaches your server too. You haven't changed anything, yet one day it gets slow. This unpredictability is the biggest difference from other self-hosted services.

  • Posts arrive continuously from other servers
  • The amount that arrives changes depending on whom you follow
  • Images and videos can also be pulled in to your server
  • Even if you are the only user, communication and storage keep happening
Procura, a cloud AI robot who explains

Procura

The third affects disk. If there's a mechanism that keeps other servers' images, capacity grows even when you aren't using it. You'll need a setting that tidies it up regularly.

Specs you need

Procura, a cloud AI robot who explains

Procura

It has many components, so it's on the heavy side among self-hosted services. The application, a database, a cache, background processing and so on all live together.
  • Even for one user, you need memory with room to spare
  • The disk will certainly grow over time
  • Transfer is also used in exchanges with other servers
  • If you start on a small plan, it tends to run short early on

If you accept other people

Procura, a cloud AI robot who explains

Procura

From here it's no longer a technical matter. Having someone sign up means taking charge of that person's posts and data.
  • You'll need to manage the content that gets posted
  • You'll be holding users' information (handling of personal information comes into play)
  • You'll need to respond to inquiries and reports
  • When you shut the server down, you'll need to notify users and guide them through moving
Wilson, the security guard

Wilson

...A server that holds other people's posts. Depending on the content, you may be put in the position of being asked to respond. Before you start, it comes down to whether you're ready to take that on.

The option of using it only for yourself

Procura, a cloud AI robot who explains

Procura

If you run it with sign-ups limited to yourself, most of this responsibility doesn't arise. I think a realistic approach is to start in that form and think about the rest when it becomes necessary.
  • Keep new sign-ups closed
  • Even on your own, you can still connect to other servers
  • You can judge after seeing how load and capacity actually grow
  • When you quit, the impact stays with you alone

When you quit

If you've accepted other people, the decision to quit is no longer yours alone. How will they take their data out, and how will you guide them to where they're moving? If you don't decide this before you start, you end up unable to close it.

  • If you used it only for yourself, closing is easy
  • If other people are there, you need advance notice and guidance for moving
  • Understand that posts are also copied to other servers
  • Don't leave a domain pointing at the IP address of a server you've cancelled (that IP can be reassigned to someone else's server)
Procura, a cloud AI robot who explains

Procura

The third is in the nature of this system. Even if you delete something from your own server, it remains on the servers it has already reached. Use it understanding that it can't be completely erased.
Ren, a junior infrastructure engineer

Ren

Accepting other people increases the responsibility. I'll start with just myself.

This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.