返回创作者库
APAshish Pratap Singh

Ashish Pratap Singh

@ashishps_1
科技与产品创作者增长英文成长创作者 (1千–3万)收录于 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.

粉丝规模
2.6万
关注 7
日常浏览中位数
6.4千
30天 15条7日 5帖
收藏率
2.4%
赞率 3.2%互动 6.6%
30 天黑马爆款
3
最高 6.6×
曝光效率日常浏览 / 粉丝数成长创作者 (1千–3万)
日常浏览 ≈ 粉丝数 25%·▲ 同量级中位 18%1.4×
0%▲

关联产品

1开源开发工具作者

ashishps1 共建 AlgoMaster.io 同款免费 interview-prep 多端产品,具备 GitHub 触点,访问约 70.1 万。

数据来自 EarlyLore

AlgoMaster.io

官方免费algomaster.io

AlgoMaster.io 为工程师提供交互式课程、可视化讲解、编程练习和 AI 模拟面试,帮助准备软件工程技术面试。

70万 月访客

近 1 天粉丝成长曲线

观测积累中

移动鼠标查看每日粉丝变化

近 1 天变化
+1(0.0%)
25,90025,85025,80025,75011-2711-28

近期内容形式分布

原创 100%长推 0%引用 0%回复 0%

代表内容类型

产品发布 20%增长复盘 80%变现进展 0%深度拆解 0%

近 14 周发文节奏

2026-11-27 周五1 条
14 周推文
15
活跃发文日
12/28
活跃周数
5/5
周均产出
3.8
单日峰值
2
高频星期
周三
8月9月10月11月一三五日
08-23 → 11-28
少多
公开互动圈1
被头部创作者关注 / 背书1
最高倍率6.6×
单帖最高浏览4.2万
最高收藏率4.0%
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

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!

4.2万1.4千(3.3%)87014412
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

大 O——时间复杂度竞赛

3.4万323(0.9%)574854
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

分片 vs 分区 vs 复制

3.2万529(1.7%)756874
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en产品发布AlgoMaster.io
日常 6.4千
AI 摘要

作者分享了一个免费的系统设计学习仓库,该仓库近期突破 4 万颗星,内容涵盖基础知识、架构主题和面试题。

  • 仓库涵盖系统设计概念、网络与 API、数据库与缓存、分布式系统及架构权衡。
  • 仓库包含 40 多道按难度分类的面试题。
  • 作者称该仓库已突破 4 万颗星。
2.7万1.1千(4.0%)77411911
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉长推 · 2en
日常 6.4千

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

1.7万544(3.3%)496739
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

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.

1.5万350(2.4%)431906
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

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

1.3万328(2.6%)3626410
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千
AI 摘要

这串帖子列出了 30 个系统设计概念,并附上作者的学习资源链接,其中包含图解和动画讲解。

  • 清单涵盖网络与 API、数据存储、扩容和分布式系统。
  • 清单分别列出垂直扩容与水平扩容,也将分片与分区列为不同的学习主题。
  • 后续帖子链接到一份学习资源,供读者在清单之外进一步了解这些概念。
1.0万311(3.0%)357528
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en增长复盘
日常 6.4千
AI 摘要

该线程介绍 JWT 的组成、认证流程、优点与安全实践,并强调 JWT 载荷是编码而非加密。

  • JWT 由头部、载荷和签名组成;签名用于检测篡改,但不会加密内容。
  • 所述流程是在登录后签发签名令牌,并在后续请求中发送。
  • 应使用 HTTPS、短期访问令牌、适当情况下使用 Secure、HttpOnly Cookie,并轮换签名密钥;不要在 JWT 载荷中放入敏感信息。
1.1万255(2.4%)326536
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en增长复盘
日常 6.4千
AI 摘要

这份15项指南介绍了 Apache Kafka 的核心概念,涵盖事件、主题、分区、复制、留存和 KRaft。

  • 分区将主题拆分,并支持消费者组并行处理数据。
  • 复制和同步副本有助于在 broker 故障时保持分区数据可用。
  • 留存控制数据保存时长或数量,日志压缩则保留每个键的最新值。
6.8千213(3.1%)210402
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
日常 6.4千

批处理与流处理对比

  • 首帖点明了批处理与流处理的对比主题,但提供的正文没有列出比较维度。
6.4千122(1.9%)181312
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en增长复盘
AI 摘要

这条内容分步骤介绍 Redis 的性能原理,包括 I/O 多路复用、主要采用单线程的事件循环、内存数据结构、持久化和复制。

  • Redis 通过 I/O 多路复用监控大量客户端连接,而非为每个连接单独创建线程。
  • 大多数命令由主线程依次执行,另有线程可处理网络 I/O 和后台任务。
  • RDB 快照和 AOF 日志提供持久化能力;异步复制可分担读取流量并支持故障转移。
4.8千147(3.1%)196295
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en增长复盘
AI 摘要

该帖对比五种限流算法,说明其工作方式,以及突发流量处理、精度和内存占用方面的权衡。

  • 令牌桶允许短时流量突发,同时控制平均请求速率;漏桶则将流量平滑为稳定流量。
  • 固定窗口简单但可能在窗口边界出现流量尖峰;滑动窗口可缓解这一问题,但精度与内存开销各有取舍。
  • 应根据流量模式、突发容忍度、精度需求和内存限制选择算法。
6.2千178(2.9%)201222
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en
AI 摘要

这串帖子对比了八种负载均衡算法,介绍各自的请求路由方式和适用场景。

  • 服务器容量相近时可用轮询;加权轮询会把更多请求分给权重更高的服务器。
  • 连接持续时间不一时可用最少连接数;二选一算法随机抽取两台服务器,再选择负载较低的一台。
  • IP 哈希有助于保持会话亲和性;一致性哈希可减少服务器增删时需要重新映射的请求。
5.3千153(2.9%)172315
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉enAlgoMaster.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.3千37(2.8%)4860
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1创作者增长2.6万粉en

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.2千80(2.5%)11771
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉enAlgoMaster.io
AI 摘要

这条帖子介绍了数据库扩展的十个概念,包括索引、缓存、分片、复制和连接池。

  • 索引和查询优化可以提升读取查询的性能。
  • 缓存和连接池有助于降低数据库负载及连接开销。
  • 分片和复制可用于分散工作负载并提升可用性。
5.0千163(3.3%)152198
X 原帖
APAshish Pratap Singh
Ashish Pratap Singh@ashishps_1科技与产品2.6万粉en

API 网关的十大应用场景

5.1千121(2.4%)179222
X 原帖