Library Search
结果页

入门教程 - 服务网格与多数据中心

在 技术栈 中找到 8 个匹配结果。

返回文档库
技术栈

技术栈

8 个
查看全部
HashiCorp Consul # Consul 入门教程:服务网格与多数据中心 ## 1. Consul vs ZooKeeper vs etcd | 维度 | Consul | ZooKeeper | etcd | |------|--------|-----------|------| | 协议 | Raft + Gossip | ZAB | Raft | | 服务发现 | 原生 DNS/HTTP API | 需框架封… 2% Istio # Istio 服务网格入门教程 ## 第一章:什么是 Service Mesh ### 传统微服务通信 ``` 业务代码 = 业务逻辑 + 重试/超时/熔断/安全/监控 ``` 这些非业务逻辑散落在各个服务里,不同语言重复实现,升级困难。 ### Sidecar 模式 ``` ┌────────────────────┐ │ 业务容器 (app) │ ← 只管业务 │ lo… 2% Bootstrap <!-- 数据表格 --> <div class="card"> <div class="card-header d-flex justify-content-between align-items-center"> <h5 class="mb-0">最近订单</h5> <button class="btn btn… 2% RabbitMQ # RabbitMQ 入门教程:从概念到集群 ## 1. 消息队列解决了什么问题? 在单体架构中,一个请求直接调用另一个服务。但在微服务架构中: - **服务宕机**:下游服务不可用时,请求直接失败 - **流量尖峰**:秒杀场景下,瞬时流量压垮数据库 - **紧耦合**:服务间直接调用,一处变更影响全局 消息队列通过"异步解耦"解决上述问题:生产者将消息发给 Broker,消费者按自己的… 2% Nuxt async function addTodo() { const text = newTodo.value.trim() if (!text) return await $fetch('/api/todos', { method: 'POST', body: { text } }) newTodo.value = '' refresh() } async function r… 2% Apache Cassandra **设计分析:** - `(device_id, date)` 复合分区键——同一设备同一天的数据在同一分区 - `timestamp DESC`——最新数据先返回 - TTL = 30天——自动清理旧数据 ### 步骤二:模拟数据写入 ```python from cassandra.cluster import Cluster import uuid, random, time from… 2% Angular addTodo() { if (this.newTodo.trim()) { this.todoService.add(this.newTodo.trim()); this.newTodo = ""; } } toggleTodo(id: number) { this.todoService.toggle(id); } remov… 1% Prometheus # Prometheus 入门教程:PromQL 与告警体系 ## 1. 监控哲学 Prometheus 的核心方法论: - **指标(Metrics)** 优于日志(Logs)和追踪(Traces) - **Pull 模型**:Prometheus 主动去目标抓数据(而非被动接收) - **多维标签**:同一个指标可通过标签区分不同维度 ## 2. 四种指标类型 | 类型 | 说明 |… 1%