上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 59 下一页
摘要: Istio 架构 https://istio.io/latest/docs/ops/deployment/architecture/ Istio 服务网格在逻辑上分为数据平面和控制平面。 The data plane is composed of a set of intelligent proxi 阅读全文
posted @ 2023-11-20 14:48 左扬 阅读(308) 评论(0) 推荐(0)
摘要: 服务治理的形态 通常认为,服务治理的演变至少经过了以下三种形态。 一、第1种形态:治理逻辑和业务代码耦合 在微服务化的过程中,服务拆分后,基本的业务连通都成了问题。如下图 服务调用方的微服务怎么找到对端的服务实例?怎么选择一个对端实例发出请求,等等,都需要业务开发者写代码来实现。 这种方式简单,对外 阅读全文
posted @ 2023-11-20 11:07 左扬 阅读(99) 评论(0) 推荐(0)
摘要: Istio 能做什么? 下面通过一个天气预报应用展示 Istio 的服务访问形式。其中有两个服务:forecast 和 recommendation。forecast 由 Node.js 开发而成,recommendation 由 Java 开发而成。这两个服务之间通过最简单的服务名进行调用,在代码 阅读全文
posted @ 2023-11-20 09:41 左扬 阅读(82) 评论(0) 推荐(0)
摘要: Istio中的概念介绍 一、流量管理 https://istio.io/latest/docs/concepts/traffic-management/ Istio’s traffic routing rules let you easily control the flow of traffic 阅读全文
posted @ 2023-11-17 09:35 左扬 阅读(323) 评论(0) 推荐(0)
摘要: 项目搭建 一、环境准备 软件名称 软件版本 node v20.9.0 npm 10.1.0 Windows 10 专业版 22H2 vue 3.3.4 vue/cli 5.0.8 vue-router 4.2.5 vite 4.4.11 vitest 0.34.6 pinia 2.1.7 vue-t 阅读全文
posted @ 2023-11-15 10:16 左扬 阅读(365) 评论(0) 推荐(0)
摘要: 定义Store Store 是用defineStore()定义的,它的第一个参数要求是一个独一无二的名字: import { defineStore } from 'pinia' // 你可以对 `defineStore()` 的返回值进行任意命名,但最好使用 store 的名字,同时以 `use` 阅读全文
posted @ 2023-11-14 14:56 左扬 阅读(2218) 评论(0) 推荐(0)
摘要: Pinia —— Store 是什么? https://pinia.vuejs.org/zh/getting-started.html#what-is-a-store 一、Store 是什么? Store (如 Pinia) 是一个保存状态和业务逻辑的实体,它并不与你的组件树绑定。换句话说,它承载着 阅读全文
posted @ 2023-11-14 10:20 左扬 阅读(201) 评论(0) 推荐(0)
摘要: 安装 Pinia 用你喜欢的包管理器安装 pinia: yarn add pinia # 或者使用 npm npm install pinia 安装结束。 阅读全文
posted @ 2023-11-14 10:13 左扬 阅读(72) 评论(0) 推荐(0)
摘要: 介绍 Pinia https://pinia.vuejs.org/zh/introduction.html 一、简介 https://pinia.vuejs.org/zh/introduction.html#introduction Pinia 起始于 2019 年 11 月左右的一次实验,其目的是 阅读全文
posted @ 2023-11-14 09:52 左扬 阅读(244) 评论(0) 推荐(0)
摘要: Vuex 4.x —— Getter https://vuex.vuejs.org/zh/guide/getters.html 有时候我们需要从store中的state中派生出一些状态,例如对列表进行过滤并计数: computed: { doneTodosCount () { return this 阅读全文
posted @ 2023-11-13 17:35 左扬 阅读(62) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 59 下一页