More: 👇
1. Lot of random IO & expensive HW.
2. Data overhead & reduced compression.
3. Hard/impossible end-to-end encryption.
But data written to flat files compresses spectacularly well, often at ~10:1.
Flat files can be used as a dumb store. Just append whatever byte [] the client gives you.
Databases still handle data durability, data consistency, concurrency control, access control, and other things that are not trivial to do with plain flat files partitioned by user.
A low-burden, low-cost database equivalent. End-to-end encryption will be the 🍒 on the 🎂
Have a good weekend!