CLAUDE.md@by-scenario/microservices claudeA
CLAUDE.md@by-scenario/microservices is agent-read markdown (claude) from overseastelegramaliterateperson865/awesome-claude-md.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# 微服务架构项目 ## 架构概览 - 微服务架构,各服务独立部署、独立数据库 - 服务间通信:同步(REST/gRPC)+ 异步(消息队列) - 容器化部署:Docker + Kubernetes - 基础设施:服务注册发现、配置中心、API 网关 ## 项目结构(典型 Monorepo) ``` services/ # 各微服务(user-service, order-service 等) shared/ proto/ # gRPC Proto 定义 common-lib/ # 共享工具库 infra/ docker-compose.yml / k8s/ / helm/ # 部署配置 ``` ## 服务间通信 - 同步调用:REST(简单场景)或 gRPC(高性能/强类型场景) - 异步消息:RabbitMQ / Kafka,用于事件驱动和解耦 - 命名规范:事件名用过去时 `order.created`、`payment.completed` - 调用链路中做好超时和重试配置,设置合理的 timeout 和 retry 策略 - 使用断路器(Circuit Breaker)防止级联故障 ## 服务拆分原则 - 按业务域划分(DDD 限界上下文),而非技术层 - 每个服务拥有自己的数据库,禁止直接访问其他服务的数据库 - 跨服务数据一致性使用 Saga 模式或最终一致性 - 避免分布式事务(2PC),优先选择补偿机制 ## Docker + Kubernetes - 每个服务一个 Dockerfile,使用多阶段构建减小镜像 - K8s 资源:Deployment + Service + ConfigMap/Secret + Ingress - 健康检查:配置 `livenessProbe` 和 `readinessProbe` - 水平扩缩容:HPA 基于 CPU/内存或自定义指标 ## 可观测性 - 分布式追踪:OpenTelemetry 采集,Jaeger/Zipkin 展示 - 日志:结构化 JSON 日志,包含 traceId,统一收集到 ELK/Loki - 监控:Prometheus 采集指标 + Grafana 面板 - 每个请求必须携带和传播 traceId/spanId ## 本地开发 ```bash docker-compose up -d # 启动基础设施(数据库、MQ、Redis) docker-compose up user-service # 启动单个服务 docker-compose logs -f order-service # 查看服务日志 ``` ## API 网关 …
Read the whole file at its exact version.
How to install
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/microservices/CLAUDE.md@git:20260320.fcf2609mdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/microservices/CLAUDE.md@sha256:1deaa5c6d1945de9Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_eyytmhwgn2cmesha)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2457 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_eyytmhwgn2cmesha GET https://markdownregistry.com/api/v1/resolve?ref=overseastelegramaliterateperson865/awesome-claude-md/by-scenario/microservices/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/1deaa5c6d1945de99112fad121b3736424f1aab6ecbdfa8598dbc4293e566bc9
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from overseastelegramaliterateperson865/awesome-claude-md
Every file in overseastelegramaliterateperson865/awesome-claude-md