169 похожих чатов

Hi I am very new to database scaling. I was

working on Monolithic, SOA and Hybrid microservice applications which can at most 1 master and 1 salve (To immediately recover from master failure but reads never happened from it). How is SQL databases scaled horizontally in big companies. I have few queries

1. How will SQL be scaled to 1 region for example India. Can we have multiple masters instance for writes and we can have multiple slave instances so that reads can be on slave.

i. How eventual consitency is maintained for systems like facebook, blog or someother systems where immediate consitency can he okay.

ii. If I am working on mission critical system like Banking, Stocks then I need consitency over availability how is that achieved.

iii. How can we achieve data replication from master to slaves with low latency.


2. Now I want to go globally as shown in the image attached. How will the above system scaled

i. Will every region have multiple master instances and we will have multiple slave instances.

ii. How will the data replicated from one region to another region with low latency. At first point will it be replicated?

iii. Will caching happens region wise or central.

iv. Think that I want to pull some reports from all over the world databases. How will database table join works? How does the data aggregation works?


3. How are database definition or manipulation (ie adding or removing columns) is handled so that it should reflect immediately throught the world database centers immediately. May be your company might go for canary deployment, how can it be achieved.

4. What if there is global interest in the data for example some corona pandemic or israle war scenes or afaghansitan issues where everyone are watching them how the data is cached or made highly available

5. How does the maintenance of the master instances happen.

6. How will other region application know about some other regions ip address for replication or other interactions? Will you implement some kind of Service Registery & Service Discovery? If yes then which software and how will be your approach

5 ответов

20 просмотров

Databases scale vertically.

Flying-Dragon Автор вопроса
Ilya Zviagin
Databases scale vertically.

You cannot scale vertically to cater huge amount of users and that too who are globally situated

Flying-Dragon Автор вопроса
Ilya Zviagin
Databases scale vertically.

If you know any ways to achieve horizontally scaling kindly let me know.

Flying Dragon
If you know any ways to achieve horizontally scali...

depends on your requirements and load you can go with either NDB or with galera. both have their own cons and pros. also try to take a look at vitess (i do not have any experience with it but it claims that it can scale database horizontally)

Flying-Dragon Автор вопроса

Похожие вопросы

Обсуждают сегодня

Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Коллеги, я тут для личных нужд пошел ставить MQTT сервер, пощупал mosquitto, но ужаснулся отсутствию такой банальности, как HTTP API для посмотреть список топиков. А тут что,...
Maksim Lapshin
14
#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
Всем привет! Решаю 99 OCaml Problems и столкнулся со следующей проблемой (прошу палками не забивать, я OCaml практически не трогал до этого момента): open OUnit2 let create_...
К|/|pи/\/\ 6е3yглbIи
2
<?php function prepareTel($data, $modx, $_multiTV) { if ($data['iteration'] == $data['row']['total']) { $data['tel'] = '<a class="link" href="tel: ' . $data['tel']...
Кирилл Гацевич
2
❓ Подскажите как сделать в группе телеги функцию (кнопку) пересылки сообщения где есть нарушение правил? Бот к каждому сообщению (по определенным ключам) добавляет снизу кнопк...
Alexander
4
Hi freinds. I'm reading an old Pascal book and I just want to compile and run its codes using fpc. What's your recommendation to use the environment efficiently? Please send m...
Shak
4
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
возможно ли как-то передать в электрон или таури медиа поток с рендера 2д движка? двиг запускается как dll, а дальше надо как-то отправлять рендер кодировать не подходит, зр...
Kyle Nekto
7
Карта сайта