I finished designing my own distributed object storage, added detail to my profile, and tonight I will explain from scratch how I designed it on my YouTube channel, and I am open to any feedback
I've started building ViralDB, a lightweight Key-Value Database in Go, from scratch.
So far, I've explored:
Binary serialization and deserialization
Append-only log storage
Reading records from disk
In-memory Hash Map indexing
SET, GET, UPDATE, and DELETE operations
More to come
@chessMan786 this is where understanding virtual memory becomes essential dma needs stable memory addresses and pinning pages ensures the kernel can safely coordinate transfers while preventing those pages from being swapped out
@tanujDE3180 they solve different problems idempotency makes repeated operations safe deduplication prevents processing the same event twice and memoization avoids recomputing results by caching previous outputs
@devXritesh one of the best resources for understanding how database indexes actually work and why query performance depends on more than just adding an index
@RaulJuncoV before choosing a database we should understand the access patterns data flow consistency requirements and failure scenarios because the database should follow the system design not drive it
@joeksluis well said @joeksluis interesting how separating compute and storage can shorten the commit path but the real tradeoff is how the system maintains durability and consistency across those components
My favorite learning from databases has been about tradeoffs. Theres no magic. When a db makes certain claims, such as that they're 10x or so faster than anything else, chances are that they're making different tradeoffs. Eg might not be fsyncing as often and acting almost like an in memory db with potential for dataloss, etc.
In some rare occasion it might be actual innovation, eg from a specific daya structure
@tonialaribe@obiabo_immanuel exactly every performance gain has a cost somewhere the interesting part of database engineering is understanding which tradeoffs are acceptable for a specific workload especially around durability consistency and storage
@obiabo_immanuel understanding how database internals interact with the operating system makes a huge difference especially when exploring page management buffer pools disk io and query performance
@ppramanik62 buffer managers are one of those database internals that become much easier to understand when you build a storage engine yourself looking forward to the 101