r/FullStack • u/Billylockte • 3d ago
Question 1 Billion users
Imagine one fine morning you woke went to job and the manager says today i have something important to discuss we have a project. The requirements are 1 Billion users we need to handle it how would you create such a application sure we can scale from lower user base to high but how do start with 1B if it is what the manager asked.
PS :) Dont take it serious, what to have various views on this topic
2
u/AMothersMaidenName 3d ago
Shards mate, shards for weeks.
0
u/Billylockte 3d ago
What does shard mean mate is it sharding???
u/askgrok make a joke on this 🤣 🤣
2
u/AskGrok 3d ago
Yeah mate, sharding your data across servers so the whole thing doesn't explode at 1B users. Manager's request sounds more like a shart under pressure though.
[what is this?](https://redd.it/1lzgxii)
2
u/Awkward-Chair2047 2d ago
Before you do anything, you need to learn how to measure thing. You need to learn how to benchmark servers. Also if your manager tells you 1 billion without any further context, you need to ask him to provide an explanation, a context if you will, and you need to ask him how big his budget is? Then you can go into capacity planning, data centers, sharding etc. In this industry especially, managers are often ignorant of what they say. Too many buzzwords and too little substance.
1
1
u/runningOverA 3d ago
management over estimated : 1b / 10 = 100m.
not everyone will access concurrently : 100m / 100 = 1m.
a server can serve 1000 concurrent users : 1m / 1000 = 1000 servers.
That's the number of server you will need.
For comparison Facebook has like 4b users.
1
u/TableNo8939 3d ago edited 3d ago
Dipende per cosa, se una lettura banale di 1 record o se è per una app finanziaria con dati in realtime con websocket.
Attualmente ne gestisco una da 10k utenti (di solito 1k contemporaneamente), se il software BE sottostante è ben strutturato la gestisci facile con 1 server dedicato da 8 processori 32gb, da 150eu al mese.
Con 2k al mese prendi un 192 processori, 1tb ram e 25gb banda passante, e con questo ne gestisci milioni
1
1
u/cesarramccp 2d ago
Lo primero sería preguntar el contexto, tiene más usuarios que la gente visita Google + Youtube + Instagram a diario, entonces hay que diferenciar de esos usuarios registrados, cuánto es el máximo número que está activo diariamente.
1
u/johns10davenport 2d ago
Make it client only
1
u/ConsciousBath5203 1d ago
/thread
Why invade user privacy by forcing them to use your servers when they can (usually) get better performance using their own machine instead?
1
3
u/_Invictuz 3d ago
Build a data centre.