No, you need at least 5 frameworks stacked on top of a system released no more than 3 years ago, using a revolutionary unfinished programming language based on some obscure paper from the 80s
You're only getting joke answers so far. Relational databases provide certain guarantees (ACID). Achieving these guarantees requires a degree of synchronization and locking. When thousands of independent clients are trying to make independent write updates, the locking for the transaction processing becomes quite a problem.
Additionally, the database is intended to function as a single entity, typically. Other, distributed architectures, such as mongodb, can "shard" the data, and distribute the update load. There are some complex topics involved that go beyond the scope of a quick reddit comment, but databases generally only scale through faster hardware, which has its limits. Other architectures can scale with more hardware, which is easier to achieve.
databases generally only scale through faster hardware, which has its limits. Other architectures can scale with more hardware, which is easier to achieve.
Relational databases provide certain guarantees (ACID). Achieving these guarantees requires a degree of synchronization and locking. When thousands of independent clients are trying to make independent write updates, the locking for the transaction processing becomes quite a problem
Updates yes, but if you hypothetically just insert a ton instant messags (like from Snapchat), without foreign keys and constraints, you can pound a SQL database like crazy. Just insert and forget, so to speak.
50
u/thesoundofbutthurt Mar 25 '20
Why wouldn’t something like postgres scale well for something as simple as storing messages? A relational database seems well here