Abstract AlgorithmsAbstract Algorithms

  • Home
  • All Posts
  • All Series
  • About

Category

database

2 articles across 2 sub-topics

Design Patterns(1)

LLD for URL Shortener: Designing TinyURL

TLDR TLDR: A URL Shortener maps long URLs to short IDs. The core challenge is generating a globally unique, short, collision-free ID at scale. We use Base62 encoding on auto-incrementing database IDs for deterministic, collision-free short codes. ...

Mar 9, 2026•21 min read
Concurrency(1)
Types of Locks Explained: Optimistic vs. Pessimistic Locking

Types of Locks Explained: Optimistic vs. Pessimistic Locking

TLDR: Pessimistic locking locks the record before editing — safe but slower under low contention. Optimistic locking checks for changes before saving using a version number — fast but can fail and require retry under high contention. Choosing correct...

Feb 10, 2026•13 min read

Abstract Algorithms

Exploring the fascinating world of algorithms, data structures, and software engineering through clear explanations and practical examples.

Navigation

  • Home
  • All Posts
  • All Series
  • About

Series

  • Machine Learning Fundamentals

Popular Topics

  • architecture
  • System Design
  • event-driven-architecture
  • Microservices
  • distributed systems
  • data-engineering

Author

Abstract Algorithms

Abstract Algorithms

@abstractalgorithms

© 2026 Abstract Algorithms. All rights reserved.

Powered by Hashnode