Back to Creators
APAshish Pratap Singh

Ashish Pratap Singh

@ashishps_1
Tech & ProductGrowthEnglishEmerging (1K–30K)Tracked since 2026-11-26

Founder @algomaster_io Prev SDE-2 @Amazon 275k+ @YouTube, 250k+ @LinkedIn, 100k+ stars @GitHub. Write about coding, dsa, system design and interviews.

Followers
25.8K
Following 7
Typical Views
6.4K
30d · 15 posts5/7d
Bookmark %
2.4%
Like 3.2%Eng. 6.6%
30d Breakout Hits
3
Peak 6.6×
Reach RatioTypical Views / FollowersEmerging (1K–30K)
Typical views ≈ 25% of followers·▲ Peer Median 18%1.4×
0%▲

Associated Product

1OSS Devtool Maker

ashishps1 co-ships AlgoMaster.io, the same free interview-prep stack on web and mobile with GitHub presence and ~701k visits.

Data via EarlyLore

AlgoMaster.io

OfficialFreealgomaster.io

Master Software Engineering Interviews

701K visits/mo

1-Day Follower Growth

Accumulating

Hover to inspect daily follower changes

1d Change
+1(0.0%)
25.90K25.85K25.80K25.75K11-2711-28

Content Format Mix

Original 100%Thread 0%Quote 0%Reply 0%

Content Archetypes

Launch 20%Growth 80%Traction 0%Teardown 0%

14-Week Posting Cadence

2026-11-27 Fri1 post
14w Posts
15
Active Days
12/28
Active Weeks
5/5
Avg / Week
3.8
Peak Day
2
Peak Day/Wk
Wed
AugSepOctNovMonWedFriSun
08-23 → 11-28
LessMore
Public Interactions1
Followed & Endorsed By1
Peak Outlier6.6×
Top Post Views42.1K
Peak Bookmark %4.0%
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K

I created a Github repository to learn System Design, and I'm excited to share that it crossed 35k stars recently.

The repository contains a collection of resources to study: - System Design Core Concepts - Networking and API Fundamentals - Database and Caching Fundamentals - Distributed Systems, Microservies and Architectural Patterns - System Design Tradeoffs - 40+ interview problems categorized by difficulty level

Check it out here: t.co/pkVpi6LxSV

If you find the repo valuable, consider giving it a ⭐️ and share with others.

Thanks to everyone who has starred or forked the repository!

42.1K1.4K(3.3%)87014412
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K

BIG O - Time Complexity Race

  • The title indicates a comparison or race involving Big O time complexity.
34.4K323(0.9%)574854
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersLaunchAlgoMaster.io
typical 6.4K

I created a Github repository to learn System Design, and it crossed 40k stars recently.

The repository contains a collection of FREE resources to study: - System Design Core Concepts - Networking and API Fundamentals - Database and Caching Fundamentals - Distributed Systems, Microservies and Architectural Patterns - System Design Tradeoffs - 40+ interview problems categorized by difficulty level

Check it out here: t.co/pkVpi6LxSV

If you find the repo valuable, consider giving it a ⭐️ and share with others.

  • The repository covers system design concepts, networking and APIs, databases and caching, distributed systems, and architectural tradeoffs.
  • It includes 40+ interview problems organized by difficulty.
  • The author says the repository has crossed 40,000 stars.
27.0K1.1K(4.0%)77411911
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersThread · 2
typical 6.4K

If you want to level up as a backend engineer, consider reading these 7 books:

1) Clean Code 2) Head First Design Patterns 3) Designing Data-Intensive Applications 4) Fundamentals of Data Engineering 5) Database Internals 6) Building Microservices 7) Head First Software Architecture

Which other book would you add to this list?

♻️ Repost to help others in your network

16.6K544(3.3%)496739
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K

10 Golden Rules to Write Clean Code:

1. 𝐀𝐯𝐨𝐢𝐝 𝐌𝐚𝐠𝐢𝐜 𝐍𝐮𝐦𝐛𝐞𝐫𝐬 𝐚𝐧𝐝 𝐒𝐭𝐫𝐢𝐧𝐠𝐬 Hard-coded literals hide intent. Instead of writing 7, ADMIN, or ACTIVE directly in multiple places, extract them into named constants or enums.

2. 𝐔𝐬𝐞 𝐌𝐞𝐚𝐧𝐢𝐧𝐠𝐟𝐮𝐥 𝐍𝐚𝐦𝐞𝐬 A good name tells you what something represents and why it exists. If you need a comment to explain a variable, the name probably needs improvement.

3. 𝐅𝐚𝐯𝐨𝐫 𝐄𝐚𝐫𝐥𝐲 𝐑𝐞𝐭𝐮𝐫𝐧𝐬 𝐎𝐯𝐞𝐫 𝐃𝐞𝐞𝐩 𝐍𝐞𝐬𝐭𝐢𝐧𝐠 Handle invalid cases upfront. This keeps the main logic flat, readable, and easier to reason about.

4. 𝐀𝐯𝐨𝐢𝐝 𝐋𝐨𝐧𝐠 𝐏𝐚𝐫𝐚𝐦𝐞𝐭𝐞𝐫 𝐋𝐢𝐬𝐭𝐬 Too many arguments usually mean the function is doing too much or the data belongs together. Wrap related values into a single object, record or config.

5. 𝐊𝐞𝐞𝐩 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬 𝐒𝐦𝐚𝐥𝐥 𝐚𝐧𝐝 𝐅𝐨𝐜𝐮𝐬𝐞𝐝 A function should do one thing well. If you can’t summarize it in one sentence, it may be time to split it.

6. 𝐊𝐞𝐞𝐩 𝐂𝐨𝐝𝐞 𝐃𝐑𝐘 Don’t Repeat Yourself. Repeated logic often leads to repeated bugs. If the same logic appears in multiple places, extract it into a reusable function, class, or module.

7. 𝐀𝐩𝐩𝐥𝐲 𝐊𝐈𝐒𝐒 𝐏𝐫𝐢𝐧𝐜𝐢𝐩𝐥𝐞 Keep it Simple Stupid. Prefer simple, obvious solutions over clever abstractions. If someone can’t understand it quickly, it isn’t simple.

8. 𝐏𝐫𝐞𝐟𝐞𝐫 𝐂𝐨𝐦𝐩𝐨𝐬𝐢𝐭𝐢𝐨𝐧 𝐎𝐯𝐞𝐫 𝐈𝐧𝐡𝐞𝐫𝐢𝐭𝐚𝐧𝐜𝐞 Inheritance creates tight coupling when overused. Use it only when there is a true “is-a” relationship. For flexible behavior, composition is often cleaner and easier to change.

9. 𝐂𝐨𝐦𝐦𝐞𝐧𝐭 𝐎𝐧𝐥𝐲 𝐖𝐡𝐞𝐧 𝐍𝐞𝐜𝐞𝐬𝐬𝐚𝐫𝐲 Good code explains what. Good comments explain why. If a comment only repeats the code, the code probably needs refactoring.

10. 𝐖𝐫𝐢𝐭𝐞 𝐆𝐨𝐨𝐝 𝐂𝐨𝐦𝐦𝐢𝐭 𝐌𝐞𝐬𝐬𝐚𝐠𝐞𝐬 Commit messages document your project’s history. Avoid vague messages like fix bug or update code. A good commit message clearly explains what changed and why it changed.

What other clean code rule would you add to this list?

♻️ Repost to help others learn these clean code rules.

14.7K350(2.4%)431906
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K

How to Design URL Shortener in a System Design Interview:

1. Requirements Functional: → Shorten a long URL into a short code. → Redirect a short code back to the original URL. → Support optional custom aliases and expiry dates.

Non-functional: → Read-heavy: links are created once and clicked many times. → Low latency on redirects. → High availability and horizontal scalability.

2. API Design You mainly need two endpoints.

→ POST /shorten: takes long_url, plus optional custom_alias and expiry_date, and returns the short URL. → GET /{short_code}: looks up the original URL and returns a 301 redirect.

Handle the error cases too: 404 when the code does not exist, 410 when the link has expired.

3. High-Level Architecture Since the system is read-heavy, split reads from writes.

→ A URL Generation Service handles writes. → A Redirection Service handles reads.

A load balancer routes traffic to each. The redirection path sits behind a Redis cache, so popular links are served from memory. On a cache miss, you read from the database and populate the cache.

4. Database Schema The access pattern is a simple lookup by short code, so a NoSQL store like DynamoDB fits well and scales to billions of rows.

url_mappings: → short_code (primary key) → long_url → user_id → created_at → expiry_date → click_count

users: → user_id (primary key) → email, name, password

5. Short Code Generation Skip random strings, since they cause collisions and force extra database checks.

Use a counter instead. → A Redis counter creates a unique number with an atomic INCR. → Base62 encoding turns it into a short string like 8ryaqQ.

INCR is atomic, so no two requests ever get the same number. With a 7-character code, you get about 62^7, roughly 3.5 trillion combinations.

What else would you like to add to the design? Let me know in the comments.

♻️ Repost to help others get better at System Design

12.6K328(2.6%)3626410
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K

30 Must-Know System Design Concepts:

1. Client-Server 2. IP Address 3. DNS 4. HTTP / HTTPS 5. Latency 6. APIs 7. REST API 8. GraphQL 9. WebSockets 10. Webhooks 11. Databases 12. SQL vs NoSQL 13. Indexing 14. Denormalization 15. Blob Storage 16. Vertical Scaling 17. Horizontal Scaling 18. Load Balancer 19. Reverse Proxy 20. CDN 21. Caching 22. Replication 23. Sharding 24. Partitioning 25. CAP Theorem 26. Microservices 27. API Gateway 28. Message Queue 29. Rate Limiting 30. Idempotency

♻️ Repost to help others in your network

  • The list covers networking and APIs, data storage, scaling, and distributed systems.
  • It lists vertical and horizontal scaling separately, and distinguishes sharding from partitioning as separate study topics.
  • The follow-up post points readers to a separate resource for explanations beyond the checklist.
10.3K311(3.0%)357528
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersGrowth
typical 6.4K

What is JWT and how does it work?

JWT (JSON Web Token) is a compact, URL-safe token used to securely transmit information between two parties.

It's widely used for authentication in modern web applications.

A JWT consists of three parts, separated by dots: xxxxx[dot]yyyyy[dot]zzzzz

1. 𝐇𝐞𝐚𝐝𝐞𝐫: Specifies the token type (JWT) and the signing algorithm (such as HS256 or RS256). 2. 𝐏𝐚𝐲𝐥𝐨𝐚𝐝: Contains claims, such as the user's ID, roles, and token expiration time. 3. 𝐒𝐢𝐠𝐧𝐚𝐭𝐮𝐫𝐞: Protects the token against tampering. It's generated by signing the encoded header and payload using a secret key (HMAC) or a private key (RSA/ECDSA).

𝐇𝐨𝐰 𝐉𝐖𝐓 𝐚𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐰𝐨𝐫𝐤𝐬: 1. The user logs in with their credentials. 2. The server validates credentials and generates a signed JWT. 3. The server sends the JWT back to the client. 4. The client stores the token, typically in an HttpOnly cookie or another appropriate storage mechanism. 5. For subsequent requests, the client sends the JWT, often using the Authorization: Bearer <token> header.

𝐊𝐞𝐲 𝐁𝐞𝐧𝐞𝐟𝐢𝐭𝐬: - Stateless Authentication: The server can validate tokens without maintaining a session for every user, making horizontal scaling easier. - Tamper Detection: The signature allows the server to detect unauthorized changes to the token. - Compact: JWTs are easy to transmit in HTTP headers and across services..

𝐉𝐖𝐓 𝐬𝐞𝐜𝐮𝐫𝐢𝐭𝐲 𝐛𝐞𝐬𝐭 𝐩𝐫𝐚𝐜𝐭𝐢𝐜𝐞𝐬: - Always use HTTPS to protect tokens in transit. - Keep access tokens short-lived (ideally 5–10 minutes) - Use refresh tokens when longer sessions are needed. - Prefer Secure, HttpOnly cookies over localStorage when appropriate to reduce token theft through XSS. - Rotate signing keys and have a strategy for token revocation.

One important thing to remember: JWTs are encoded, not encrypted. Anyone who has the token can decode its header and payload, so never store passwords or other sensitive information inside them.

♻️ Repost to help others engineers learn this.

  • A JWT has a header, payload, and signature; the signature detects tampering but does not encrypt the contents.
  • The described flow issues a signed token after login and sends it with subsequent requests.
  • Use HTTPS, short-lived access tokens, secure HttpOnly cookies where appropriate, key rotation, and avoid placing sensitive data in JWT payloads.
10.6K255(2.4%)326536
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers
typical 6.4K
Summary

The thread shares an API design cheatsheet and points readers to a system design learning resource that uses visuals and 3D animations.

7.8K212(2.7%)262393
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersGrowth
typical 6.4K

If you want to get good at Apache Kafka, learn these 15 concepts:

1. Event: A message containing data, such as an order placed or a payment completed. 2. Topic: A named stream where related events are stored, such as orders or payments. 3. Partition: A topic is divided into partitions, each storing events in the order they arrive. 4. Offset: A unique position within a partition that helps consumers track their reading progress. 5. Broker: A Kafka server that stores event data and handles reads and writes. 6. Producer: An application that publishes events to Kafka topics. 7. Consumer: An application that reads and processes events from Kafka topics. 8. Consumer Group: Multiple consumers that divide partitions among themselves to process events in parallel. 9. Rebalancing: Redistributes partition assignments when consumers join, leave, or group assignments change. 10. Replication: Keeps copies of partitions on multiple brokers so data remains available if a broker fails. 11. In-Sync Replicas (ISR): Replicas that are sufficiently caught up with the partition leader. 12. Exactly-Once Semantics: Ensures records produce a single committed result in supported Kafka processing workflows, even with retries. 13. Retention: Controls how long or how much data Kafka stores before deleting old records. 14. Log Compaction: Removes older records with the same key while preserving the latest value for each key. 15. KRaft: Kafka's built-in mechanism for managing cluster metadata and electing controllers without ZooKeeper.

♻️ Repost to help others learn this.

  • Partitions divide topics and enable consumers in a group to process data in parallel.
  • Replication and in-sync replicas help keep partition data available across broker failures.
  • Retention and log compaction offer different ways to manage stored Kafka data.
6.8K213(3.1%)210402
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersThread · 2Growth

How Redis Actually Works

Redis can handle 100,000+ operations per second with sub-millisecond latency. But how does it achieve this level of performance?

Let's break down what happens under the hood:

1. Client Connections Clients connect to the Redis server over TCP and send commands like GET, SET, and INCR.

2. I/O Multiplexing Instead of creating a separate thread for every connection, Redis uses I/O multiplexing (epoll on Linux) to efficiently monitor thousands of client connections and identify sockets ready for I/O.

3. Single-Threaded Event Loop Redis executes most commands sequentially on a single main thread. This minimizes context switching, lock contention, and synchronization overhead. Modern Redis also supports additional threads for network I/O and background tasks.

4. In-Memory Data Structures Redis stores data primarily in RAM, avoiding expensive disk access during normal command execution. It supports several powerful data structures including Strings, Hashes, Lists, Sets, Sorted Sets and Streams.

5. Persistence Despite being an in-memory database, Redis supports two main persistence mechanisms: → RDB: Periodically saves a point-in-time snapshot to disk using a forked child process and copy-on-write. → AOF (Append-Only File): Records write operations in an append-only log that can be replayed during recovery.

6. Replication Redis asynchronously streams write operations from the primary server to its replicas. Replicas can serve read requests, distribute read traffic, and support high availability through failover mechanisms.

This architecture makes Redis an excellent choice for distributed caching, session management, rate limiting, real-time leaderboards, and many other low-latency use cases.

♻️ Repost to help others learn this

  • Redis uses I/O multiplexing to monitor many client connections without a separate thread for each one.
  • Most commands run sequentially on a main thread, while additional threads can handle network I/O and background tasks.
  • RDB snapshots and AOF logs provide persistence; asynchronous replication can distribute reads and support failover.
4.8K147(3.1%)196295
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersGrowth

Top 5 Rate Limiting Algorithms You Should Know

1. Token Bucket - Tokens are added to a bucket at a constant rate. - Each incoming request consumes a token. Requests are rejected when no tokens are available. - Allows short traffic bursts while controlling the average request rate.

2. Fixed Window Counter - Divides time into fixed intervals and counts requests within each interval. - Rejects requests once the limit is reached. - Simple and memory-efficient, but allows traffic spikes around window boundaries.

3. Leaky Bucket - Incoming requests are added to a queue and processed at a fixed rate. - Requests are dropped when the queue is full. - Smooths out bursty traffic into a steady flow.

4. Sliding Window Log - Stores the timestamp of each accepted request. - Counts requests within a rolling time window. - Provides precise rate limiting but requires more memory.

5. Sliding Window Counter - Combines counters from the current and previous time windows using a weighted calculation. - Reduces the boundary problem of fixed windows. - Offers a good balance between accuracy and memory efficiency.

Choosing the right algorithm depends on your system's traffic patterns, burst tolerance, accuracy requirements, and memory constraints.

♻️ Repost to help others learn this.

  • Token buckets allow short bursts while enforcing an average request rate; leaky buckets smooth traffic into a steady flow.
  • Fixed windows are simple but can allow spikes at boundaries; sliding-window methods reduce that issue, with different accuracy and memory trade-offs.
  • Choose based on traffic patterns, burst tolerance, accuracy needs, and memory constraints.
6.2K178(2.9%)201222
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followers

8 Load Balancing Algorithms Every Developer Should Know

1. Round Robin - Distributes requests evenly across servers in a fixed order. - Simple to implement and works well when servers have similar capacities.

2. Weighted Round Robin - Assigns weights to servers based on their capacity. - Servers with higher weights receive a larger share of requests.

3. Random - Routes request to a randomly selected server. - Easy to implement and requires no server-state tracking.

4. Least Connections - Routes requests to the server with the fewest active connections. - Works well when connections have varying durations.

5. Least Response Time - Directs requests toward servers with the lowest response times. - Helps reduce latency and avoid overloaded servers.

6. Power of Two Choices - Randomly selects two servers and routes the request to the less loaded one. - Provides effective load distribution with minimal overhead.

7. IP Hash - Uses the client's IP address to consistently select a server. - Useful for session affinity, where requests from the same client should reach the same server.

8. Consistent Hashing - Maps servers and requests onto a hash ring. - Minimizes request remapping when servers are added or removed. - Commonly used in distributed caches and other distributed systems.

♻️ Repost to help others learn this.

  • Round robin suits servers with similar capacity; weighted round robin sends more requests to servers with higher weights.
  • Least connections is useful when connection durations vary; power of two choices samples two servers and picks the less loaded one.
  • IP hashing supports session affinity, while consistent hashing limits remapping when servers are added or removed.
5.3K153(2.9%)172315
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersAlgoMaster.io

I created a FREE resource to help you master DSA patterns for coding interviews.

Check it out here: t.co/UOWn8g4sva

Here's what it includes: - 600 coding problems organized into 55+ DSA patterns - Detailed explanations with multiple solution approaches - Interactive animations to visualize algorithms step by step - Built-in code editor and compiler to practice directly in your browser - Interview frequency data to help you prioritize important problems

Instead of solving hundreds of random coding problems, learn to recognize the underlying patterns and apply them to new problems.

♻️ Repost to help others in your network.

1.3K37(2.8%)4860
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Growth25.8K followers

Latency Numbers Every Developer Should Know

CPU & Memory: - Register access: ~0.3 ns - L1 cache: ~1 ns - L2 cache: ~4 ns - L3 cache: ~20 ns - RAM access: ~100 ns

Storage: - SSD read: ~100 μs - Hard disk seek: ~10 ms

Network: - Same datacenter round trip: ~500 μs - California to Netherlands round trip: ~150 ms

Note: These are illustrative latency estimates. Actual numbers vary based on hardware, workload, access patterns, and network conditions.

Top 5 Ways to Reduce Latency: 1. Caching: Keep frequently accessed data closer to the CPU or application. 2. Database optimization: Use proper indexing and avoid unnecessary disk I/O. 3. Batching: Combine multiple operations to reduce network round trips. 4. Asynchronous processing: Avoid blocking threads while waiting for slow I/O operations. 5. Data locality: Keep related data and services close to minimize network latency.

♻️ Repost to help others learn this.

3.2K80(2.5%)11771
View on X
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1Tech & Product25.8K followersAlgoMaster.io

If you want to get better at scaling databases, learn these 10 concepts:

1. 𝐈𝐧𝐝𝐞𝐱𝐢𝐧𝐠: t.co/RrHGXADOLK - Speed up read queries by creating indexes on frequently accessed columns.

2. 𝐕𝐞𝐫𝐭𝐢𝐜𝐚𝐥 𝐒𝐜𝐚𝐥𝐢𝐧𝐠: t.co/HwEDdHuIts - Add more CPU, RAM, or storage to the database server to handle higher workloads.

3. 𝐂𝐚𝐜𝐡𝐢𝐧𝐠: t.co/PVWYKoQnNA - Use in-memory stores like Redis to serve hot data faster and reduce DB load.

4. 𝐒𝐡𝐚𝐫𝐝𝐢𝐧𝐠: t.co/VxbGTbDNRm - Split the database into smaller, independent shards and distribute them across servers for horizontal scaling.

5. 𝐑𝐞𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧: t.co/7UPEEZIj9J - Create multiple copies (replicas) of the database across different servers to balance read traffic and improve availability.

6. 𝐐𝐮𝐞𝐫𝐲 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧: t.co/6ry7pZigoL - Fine-tune SQL queries, eliminate expensive operations, and leverage indexes effectively to improve execution speed.

7. 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧 𝐏𝐨𝐨𝐥𝐢𝐧𝐠: t.co/aAzxRXAoS1 - Reduce the overhead of opening/closing database connections by reusing existing ones.

8. 𝐕𝐞𝐫𝐭𝐢𝐜𝐚𝐥 𝐏𝐚𝐫𝐭𝐢𝐭𝐢𝐨𝐧𝐢𝐧𝐠: t.co/w1aynMHvYB - Split large tables into smaller, more manageable partitions, each containing a subset of the columns from the original table.

9. 𝐃𝐞𝐧𝐨𝐫𝐦𝐚𝐥𝐢𝐳𝐚𝐭𝐢𝐨𝐧: t.co/rhCDj4OJmv - Store data in a redundant but structured format to minimize complex joins and speed up read-heavy workloads.

10. 𝐌𝐚𝐭𝐞𝐫𝐢𝐚𝐥𝐢𝐳𝐞𝐝 𝐕𝐢𝐞𝐰𝐬: t.co/l24IGHQAUv - Pre-compute and store results of complex queries as separate tables to avoid expensive recalculation.

♻️ Repost to help other engineers learn this

  • Indexes and query optimization can improve read-query performance.
  • Caching and connection pooling can reduce database load and connection overhead.
  • Sharding and replication are approaches to distribute workloads and improve availability.
5.0K163(3.3%)152198
View on X