Skip to content

Commit 3c1c6ac

Browse files
committed
updates
1 parent 6e113c5 commit 3c1c6ac

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/event_horizon_web/live/cluster_live.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ defmodule EventHorizonWeb.ClusterLive do
8787
Website
8888
</text>
8989
<text x="200" y="165" text-anchor="middle" fill="#a1a1aa" font-size="10">
90-
Amsterdam
90+
Frankfurt
9191
</text>
9292
</g>
9393
<%!-- PHX - Bottom Right --%>
@@ -106,7 +106,7 @@ defmodule EventHorizonWeb.ClusterLive do
106106
Accumulator
107107
</text>
108108
<text x="330" y="355" text-anchor="middle" fill="#a1a1aa" font-size="10">
109-
Paris
109+
Frankfurt
110110
</text>
111111
</g>
112112
<%!-- BSH - Bottom Left --%>
@@ -125,7 +125,7 @@ defmodule EventHorizonWeb.ClusterLive do
125125
Battleship
126126
</text>
127127
<text x="70" y="355" text-anchor="middle" fill="#a1a1aa" font-size="10">
128-
Mumbai
128+
Frankfurt
129129
</text>
130130
</g>
131131
<%!-- Edges with latency labels --%>

priv/posts/nextjs-to-phoenix.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ Had some common mix tasks as part of "setup" process: Creating [RSS feeds](https
225225

226226
I have three elixir apps currently deployed on fly.io. One is this phoenix app, second is another phoenix app that I made that contains a set of personal tools that I use in my day-to-day life, and third is a battleship game that I created during my initial phase of learning elixir & phoenix.
227227

228+
> **UPDATE**: I moved all my apps into one region: Frankfurt. Reason being additional cross-region networking cost. These clustered apps communicate a lot through PubSub, meanwhile the latency between Paris <-> Mumbai & Amsterdam <-> Mumbai was slightly higher. Now they are in ~1ms range. Sweet!
229+
228230
These are deployed in the Amsterdam, Paris & Mumbai regions. One awesome thing about fly.io is that they provide cross-region internal networking across apps in an organisation. As a plan to have some real-time metrics in the website, I clustered this app with the second one. I just went ahead and clustered all these applications. Haven't had any nodes go down on me yet.
229231

230232
There's a [cluster page](https://aayushsahu.com/cluster) where you can see the latency measurement between all three apps, along with your latency with the website. Powered by some `:erpc` calls and PubSub. Neat!

0 commit comments

Comments
 (0)