Gezinmeyi atla
I am once again begging you to put your database servers and application servers in the same region.
0:00 / 0:53

I am once again begging you to put your database servers and application servers in the same region.

Ben Dicken

@BenjDicken51 B takipçi

X profili
8.155 beğeniİndirOrijinal gönderi

1.422.580 görüntüleme

I am once again begging you to put your database servers and application servers in the same region.

61 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • E profil fotoğrafı

    @evanpalsson

    I can do it even better:

    475 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    Incredible.

    47 beğeni

  • Jorge Trujillo profil fotoğrafı

    @zo0r

    whoever did the us-east-1 ↔ ap-east-1 combo must already have the open to work picture

    234 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    😂

    8 beğeni

  • Dimitris GR 900 Liverpol Fan Account profil fotoğrafı

    @DimitrsGR900

    People put them in different regions? For reals?

    52 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    @Dimitris_Efsta Sometimes, yes.

    15 beğeni

  • Ronan Berder (SF + SG) profil fotoğrafı

    @hunvreus

    Better yet: use SQLite and have the DB on the same server.

    45 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    What happens when your one server goes down or has a failing disk?

    21 beğeni

  • Ronan Berder (SF + SG) profil fotoğrafı

    @hunvreus

    Litestream + R2 or S3

    22 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    That's cool. My two big questions are: (1) How can to commit writes with acceptable latency? (2) If a node goes down, how fast is a restore? Is one having to take downtime?

    1 beğeni

  • Ronan Berder (SF + SG) profil fotoğrafı

    @hunvreus

    > How can to commit writes with acceptable latency? I use Litestream for backups. If you really want a more complex setup, Turso or D1 is your friend. > If a node goes down, how fast is a restore? Is one having to take downtime? It's a file, pretty fast. Faster than getting a new node set up and the code running. I wasn't taking a dig on Planetscale BTW, I only just realized you work there.

    10 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    No need to apologize! I want to learn more about cool tech.

    10 beğeni

  • Ronan Berder (SF + SG) profil fotoğrafı

    @hunvreus

    In that case, I'd check Limbo from the Turso folks: Sounds like a pretty cool attempt to rewrite SQLite.

    12 beğeni

  • Radic Davydov profil fotoğrafı

    @RadicDavydov

    They should be in the same data center with < 1ms latency.

    19 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    Radic gets it.

    2 beğeni

  • nle profil fotoğrafı

    @namletech

    Is there any reason to put them in different regions though? Naturally people just start out on a single region for a long time until they need to scale up multi regions, in that case they still keep db separated in each region

    13 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    @oscarle_x There are cases where multi-region databases are needed for ultra-high durability cases, like financial transactions. I would not recommend having a multi-master setup though. Have one region replicate from the other.

    21 beğeni

  • Ben Hollis profil fotoğrafı

    @bhollis

    What kind of criminal would NOT have their DB in the same region as the app servers!?

    9 beğeni

  • Oosta Soroosh profil fotoğrafı

    @s_soroosh

    what's the difference between the first and the second one?

    9 beğeni

  • Ben Dicken profil fotoğrafı

    @BenjDicken

    Intra-AZ vs inter-AZ. For further reading check this out:

    8 beğeni