Playing around with Cloudflare load balancing…

As nostr.wine grows we will deploy more instances of our paid relay around the world. The load balancer will simply route any nostr.wine requests to the nearest (fastest) origin server. The relays will be reconciled in real time but with separate databases so that they are local and fast.

Performance for everyone and should scale better than one database.

Replicating this with filter is a lot more complicated and expensive but it should be doable for nostr.wine.

Exploring 🇯🇵 first because of all our Japanese users and how far they are from our current machines.

Reply to this note

Please Login to reply.

Discussion

🤙killing it

Love it 🤙 ⚡️ 💜

ありがとう!

That’s why I love nostr.wine, cheers🍷

<日本語訳>

Cloudflareのロードバランシングで遊んでみた ...

nostr.wineが成長するにつれ、私たちは世界中に有料リレーのインスタンスを配備していく予定です。ロードバランサーはnostr.wineのリクエストを最も近い(速い)オリジンサーバーにルーティングするだけです。リレーはリアルタイムで調整されますが、ローカルで高速に動作するよう、別々のデータベースを使用する予定です。

すべての人にパフォーマンスを提供し、1つのデータベースよりも拡張性があるはずです。

これをフィルターで再現するのはもっと複雑でコストがかかりますが、nostr.wineでは可能なはずです。

日本のユーザーのため、そして現在のマシンから遠いため、🇯🇵 を最初に検討します。

#[0]