51 things you should know

NOSQL DB and ACID
Traditionally, most **NoSQL databases miss out on the "C" (Consistency) and "I" (Isolation) parts of ACID โ€” especially in distributed setups.

Letโ€™s break down where they usually fall short:


๐Ÿ”น A โ€“ Atomicity

๐Ÿ”น C โ€“ Consistency โœ…โŒ

๐Ÿ”น I โ€“ Isolation โŒ

๐Ÿ”น D โ€“ Durability


๐Ÿง  Summary Table

ACID Property Traditional NoSQL Support Notes
Atomicity โœ… (single entity) Full ACID for one document or row; multi-entity is tricky
Consistency โŒ (relaxed) Eventual consistency to boost performance and availability
Isolation โŒ Weak isolation; dirty reads and write conflicts possible
Durability โœ… (mostly) Depends on configuration (replication, journaling)

Let me know if you want this in context of system design trade-offs or how to explain it in an interview โ€” thatโ€™s a common area for Microsoft or FAANG interviews.


Base 62 vs Base 64

Hereโ€™s a quick breakdown of the difference between Base62 and Base64:


๐Ÿ”ข Character Set

Feature Base62 Base64
Characters 0-9 (10) + A-Z (26) + a-z (26) 0-9, A-Z, a-z, +, / (or -, _ in URL-safe)
Total 62 characters 64 characters

๐Ÿ’ก Use Cases

Base Common Use Cases
Base62 URL shorteners, compact alphanumeric IDs (safe for URLs and file names without encoding)
Base64 Encoding binary data (images, files, etc.) for transmission over media that handle text (email, JSON, etc.)

๐Ÿ“ฆ Padding

Base Padding
Base62 Typically no padding
Base64 Often uses = padding to ensure output is a multiple of 4 characters

๐Ÿงฎ Efficiency


๐Ÿ›ก๏ธ URL Safety

Base URL Safe?
Base62 Yes, always safe
Base64 No, unless using the URL-safe variant (- and _ instead of + and /)

TL;DR

Want to see how encoding/decoding looks in either one with an example?