filmov
tv
YugabyteDB Is Just Like PostgreSQL- Demo

Показать описание
In this demo, we're exploring how to migrate the Mastodon app from Postgres to YugabyteDB. Mastodon, a popular open-source microblogging platform similar to X/Twitter, is available on GitHub and operates smoothly on PostgreSQL. Its recent growth calls for "lift-and-shift" modernization. Presently, Mastodon runs on an RDS Postgres instance. To migrate, we'll:
- Set up a YugabyteDB cluster of 48 cores, comparable to the RDS Postgres m5.12xlarge instance.
- Connect to the Mastodon database within this cluster.
- Apply the PostgreSQL schema to the YugabyteDB cluster.
- Configure the Mastodon app via Docker and Nginx to point to the Yugabyte database.
Now, the Mastodon app operates under the mastodon-yb domain and is fully functional. We then use the Locust tool to simulate user activity and load, and it runs flawlessly on Yugabyte.
Performance-wise, Mastodon on YugabyteDB showcases better latency and response times than its PostgreSQL counterpart. The median response time on YugabyteDB is 670 milliseconds, and the 95th percentile is 780 milliseconds, both superior to Postgres. In summary, we successfully migrated Mastodon to a more scalable and resilient YugabyteDB without sacrificing performance, offering a blueprint for migrating various other apps.
ADDITIONAL RESOURCES:
JOIN THE YUGABYTE COMMUNITY:
- Set up a YugabyteDB cluster of 48 cores, comparable to the RDS Postgres m5.12xlarge instance.
- Connect to the Mastodon database within this cluster.
- Apply the PostgreSQL schema to the YugabyteDB cluster.
- Configure the Mastodon app via Docker and Nginx to point to the Yugabyte database.
Now, the Mastodon app operates under the mastodon-yb domain and is fully functional. We then use the Locust tool to simulate user activity and load, and it runs flawlessly on Yugabyte.
Performance-wise, Mastodon on YugabyteDB showcases better latency and response times than its PostgreSQL counterpart. The median response time on YugabyteDB is 670 milliseconds, and the 95th percentile is 780 milliseconds, both superior to Postgres. In summary, we successfully migrated Mastodon to a more scalable and resilient YugabyteDB without sacrificing performance, offering a blueprint for migrating various other apps.
ADDITIONAL RESOURCES:
JOIN THE YUGABYTE COMMUNITY: