It's not often appreciated, but I have to say, how Mastodon internals work in terms of performance and scalability are top notch and sets the bar for other projects.
It's not the language that matters, the database is the bottleneck, and more importantly how you manage the data schema and structures!