跳到正文
Skillpedia
其他48k · #5236

tech-matrix

它能做什么

这个工具可以帮你为软件项目的不同部分选择合适的技术,比如数据库、消息系统或 API 协议。它提供了对比表格和指南,帮助你做决策。

适用场景

  • ✓你开始一个新软件项目,需要选型的时候。
  • ✓你想评估当前使用的技术是否仍然最合适时。
  • ✓你在比较不同数据库或消息系统方案的时候。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monopoly/tech-matrix/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monopoly/tech-matrix/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“存储地理位置数据,哪种数据库最合适?”

每周 5 个新技能,1 分钟读完。

工作原理

工具会按数据库、缓存、消息队列等类别对比主流技术,说明每种技术擅长什么、什么时候应该避开,以及它的扩展上限,帮你做出更明智的选择。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MONOPOLY — Technology Decision Matrix

When to Use

  • Use this skill when the task matches this description: Reference document for monopoly tech-matrix.

Table of Contents

  1. Database Selection
  2. Cache Selection
  3. Message Queue / Event Streaming
  4. API Protocol
  5. Search Engine
  6. Object Storage
  7. Container Orchestration
  8. Load Balancer
  9. Observability Stack
  10. CDN

1. Database Selection

Relational (SQL)

Database Best For Avoid When Scale Ceiling
PostgreSQL Complex queries, JSONB, GIS, strong consistency, most default use cases Ultra-high write throughput (>100K writes/s) ~10TB single node; use Citus for horizontal
MySQL / MariaDB Read-heavy apps, legacy systems, WordPress/Drupal ecosystem Complex queries, full ACID at scale ~10TB; use Vitess for sharding
CockroachDB Global distributed SQL, geo-partitioning, multi-region Simple single-region apps (overkill) Petabyte-scale
PlanetScale MySQL-compatible, serverless, branch-based workflow Complex JOINs (foreign keys removed by design) Very high — Vitess based
Amazon Aurora AWS-native apps, managed PostgreSQL/MySQL, high availability Non-AWS environments Up to 128TB, 15 replicas

NoSQL

Database Best For Avoid When Scale Ceiling
MongoDB Flexible schema, document model, prototyping Financial transactions requiring ACID Petabyte-scale with sharding
DynamoDB Key-value at massive scale, AWS-native, serverless, predictable latency Complex queries, ad-hoc analytics, JOINs Unlimited (AWS-managed)
Cassandra Write-heavy, time-series, wide-column, geographically distributed Read-heavy with complex queries Petabyte-scale; used at Apple, Netflix
Redis Cache, sessions, leaderboards, pub/sub, rate limiting Primary data store for complex models ~1TB per node; cluster for more
Elasticsearch Full-text search, log aggregation, analytics Primary database (durability risk) Petabyte-scale with clusters
InfluxDB Time-series metrics, IoT, monitoring data General-purpose data Very high write throughput
Neo4j Graph data, social networks, recommendation engines, fraud detection Non-graph data (overhead not worth it) Billions of nodes

Decision Framework

Is your data relational (joins, foreign keys, transactions)?
  YES → Start with PostgreSQL
  NO  → Continue below

Is your primary access pattern key-value?
  YES, need extreme scale → DynamoDB or Cassandra
  YES, need speed/cache → Redis

Is your data document-shaped (nested, flexible schema)?
  YES → MongoDB

Is it time-series (metrics, logs, IoT)?
  YES → InfluxDB or TimescaleDB

Is it graph (relationships are the data)?
  YES → Neo4j

Is it search?
  YES → Elasticsearch / OpenSearch

2. Cache Selection

Technology Best For Max Single Node Cluster Support
Redis Sessions, leaderboards, pub/sub, complex data structures, Lua scripting ~1TB RAM Yes (Redis Cluster, Redis Sentinel)
Memcached Simple key-value, multi-threaded, large object cache ~64GB RAM Yes (client-side sharding)
Varnish HTTP reverse proxy cache, full-page caching RAM bound Limited
CloudFront / CDN Static assets, edge caching globally N/A (distributed) Built-in global distribution

Default recommendation: Redis — more features, better ecosystem, active development.

Use Memcached only when: you need multi-threading for CPU-bound caching workloads and don't need data structures beyond string.


3. Message Queue / Event Streaming

Technology Model Best For Throughput Retention
Apache Kafka Log-based streaming Event sourcing, high-throughput pipelines, replay, audit Millions msg/s Days to forever
RabbitMQ AMQP message broker Task queues, RPC, routing, fanout 50K–100K msg/s Until consumed
AWS SQS Managed queue AWS-native, simple task queue, serverless Very high (managed) Up to 14 days
AWS SNS Pub/sub notification Fan-out to many subscribers (email, SMS, Lambda, SQS) Very high (managed) No retention

…

常见问题

什么是关系型数据库?

它是一种把数据组织成表格(行和列,类似电子表格)的数据库,并且允许你在不同表之间关联信息。

什么是 NoSQL 数据库?

它是一种不采用传统表格结构的数据库。它更加灵活,适合处理海量数据或结构多样的数据。

什么是“API 协议”?

它是一套规则,规定了不同软件程序之间如何通信,就像它们交换信息时使用的一门共同语言。

详情

作者的原始描述

Reference document for monopoly tech-matrix.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5236
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能