The #DigitalOcean setup, with options for S3 compatible storage and managed Postgres, makes the best of the #Mastodon codebase architecture as it is today https://www.digitalocean.com/blog/digitalocean-spaces-mastodon-hachyderm/
But one can architect #ActivityPub servers differently.