Пропустить навигацию
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

@BenjDicken54 тыс. подписчиков

Открыть в X
8 145 отметок «Нравится»СкачатьОригинальный пост

1 422 845 просмотров

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

61 комментарий

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля E

    @evanpalsson

    I can do it even better:

    475 отметок «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

    Incredible.

    47 отметок «Нравится»

  • Фото профиля Jorge Trujillo

    @zo0r

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

    234 отметки «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

    😂

    8 отметок «Нравится»

  • Фото профиля Dimitris GR 900 Liverpol Fan Account

    @DimitrsGR900

    People put them in different regions? For reals?

    52 отметки «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

    @Dimitris_Efsta Sometimes, yes.

    15 отметок «Нравится»

  • Фото профиля Ronan Berder (SF + SG)

    @hunvreus

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

    45 отметок «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

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

    21 отметка «Нравится»

  • Фото профиля Ronan Berder (SF + SG)

    @hunvreus

    Litestream + R2 or S3

    22 отметки «Нравится»

  • Фото профиля Ben Dicken

    @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 отметка «Нравится»

  • Фото профиля Ronan Berder (SF + SG)

    @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 отметок «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

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

    10 отметок «Нравится»

  • Фото профиля Ronan Berder (SF + SG)

    @hunvreus

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

    12 отметок «Нравится»

  • Фото профиля Radic Davydov

    @RadicDavydov

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

    19 отметок «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

    Radic gets it.

    2 отметки «Нравится»

  • Фото профиля nle

    @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 отметок «Нравится»

  • Фото профиля Ben Dicken

    @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 отметка «Нравится»

  • Фото профиля Ben Hollis

    @bhollis

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

    9 отметок «Нравится»

  • Фото профиля Oosta Soroosh

    @s_soroosh

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

    9 отметок «Нравится»

  • Фото профиля Ben Dicken

    @BenjDicken

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

    8 отметок «Нравится»