Skip to content

Commit

Permalink
优化meta标签
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson0314 committed Feb 25, 2023
1 parent 487b2f9 commit 393f434
Show file tree
Hide file tree
Showing 75 changed files with 1,322 additions and 37 deletions.
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/1-principle.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式的六大原则
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 设计模式的六大原则,设计模式,设计模式面试题
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 设计模式的六大原则

- 开闭原则:对扩展开放,对修改关闭,多使用抽象类和接口。
Expand Down
17 changes: 16 additions & 1 deletion docs/advance/design-pattern/10-observer.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之观察者模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 观察者模式,设计模式,观察者
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 观察者模式

**观察者模式(Observer)**,又叫**发布-订阅模式(Publish/Subscribe)**,定义对象间一种一对多的依赖关系,使得每当一个对象改变状态,则所有依赖于它的对象都会得到通知并自动更新。UML结构图如下:
Expand Down Expand Up @@ -120,4 +135,4 @@ public class Client {

- 关联行为场景
- 事件多级触发场景
- 跨系统的消息变换场景,如消息队列的处理机制
- 跨系统的消息变换场景,如消息队列的处理机制
17 changes: 16 additions & 1 deletion docs/advance/design-pattern/11-proxy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之代理模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 代理模式,设计模式,静态代理,动态代理
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 代理模式

代理模式使用代理对象完成用户请求,屏蔽用户对真实对象的访问。
Expand Down Expand Up @@ -192,4 +207,4 @@ InvocationHandler 内部只是一个 invoke() 方法,正是这个方法决定



> 参考链接:https://zhuanlan.zhihu.com/p/72644638
> 参考链接:https://zhuanlan.zhihu.com/p/72644638
17 changes: 16 additions & 1 deletion docs/advance/design-pattern/12-builder.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之建造者模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 建造者模式,设计模式,建造者,生成器模式
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 建造者模式

Builder 模式中文叫作建造者模式,又叫生成器模式,它属于对象创建型模式,是将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。建造者模式是一步一步创建一个复杂的对象,它允许用户只通过指定复杂对象的类型和内容就可以构建它们,用户不需要知道内部的具体构建细节。
Expand Down Expand Up @@ -317,4 +332,4 @@ public static void student(){
### 缺点

- 建造者模式所创建的产品一般具有较多的共同点,其组成部分相似,如果产品之间的差异性很大,则不适合使用建造者模式,因此其使用范围受到一定的限制。
- 如果产品的内部变化复杂,可能会导致需要定义很多具体建造者类来实现这种变化,导致系统变得很庞大。
- 如果产品的内部变化复杂,可能会导致需要定义很多具体建造者类来实现这种变化,导致系统变得很庞大。
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/2-singleton.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之单例模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 单例模式,设计模式,单例
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 单例模式

单例模式(Singleton),目的是为了保证在一个进程中,某个类有且仅有一个实例。
Expand Down
17 changes: 16 additions & 1 deletion docs/advance/design-pattern/3-factory.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之工厂模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 工厂模式,设计模式
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 工厂模式

工厂模式是用来封装对象的创建。工厂模式有三种,它们分别是简单工厂模式,工厂方法模式以及抽象工厂模式,通常我们所说的工厂模式指的是工厂方法模式。
Expand Down Expand Up @@ -292,4 +307,4 @@ operationController.control();

(2)需要一组对象共同完成某种功能时。并且可能存在多组对象完成不同功能的情况。

(3)系统结构稳定,不会频繁的增加对象。(因为一旦增加就需要修改原有代码,不符合开闭原则)
(3)系统结构稳定,不会频繁的增加对象。(因为一旦增加就需要修改原有代码,不符合开闭原则)
16 changes: 16 additions & 0 deletions docs/advance/design-pattern/4-template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
---
sidebar: heading
title: 设计模式之模板模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 模板模式,设计模式
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---


# 模板模式

模板模式:一个抽象类公开定义了执行它的方法的方式/模板。它的子类可以按需要重写方法实现,但调用将以抽象类中定义的方式进行。 这种类型的设计模式属于行为型模式。定义一个操作中的算法的骨架,而将一些步骤延迟到子类中。
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/5-strategy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之策略模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 策略模式,设计模式
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 策略模式

策略模式(Strategy Pattern)属于对象的行为模式。其用意是针对一组算法,将每一个算法封装到具有共同接口的独立的类中,从而使得它们可以相互替换。策略模式使得算法可以在不影响到客户端的情况下发生变化。
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/6-chain.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之责任链模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 责任链模式,设计模式
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 责任链模式

## 定义
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/7-iterator.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之迭代器模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 迭代器模式,设计模式,迭代器
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 迭代器模式

提供一种方法顺序访问一个聚合对象中的各个元素, 而又不暴露其内部的表示。
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/8-decorator.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之装饰模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 装饰模式,设计模式,装饰者
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 装饰模式

装饰者模式(decorator pattern):动态地将责任附加到对象上, 若要扩展功能, 装饰者提供了比继承更有弹性的替代方案。
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/design-pattern/9-adapter.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 设计模式之适配器模式
category: 设计模式
tag:
- 设计模式
head:
- - meta
- name: keywords
content: 适配器模式,设计模式,适配器
- - meta
- name: description
content: 设计模式常见面试题总结,让天下没有难背的八股文!
---

# 适配器模式
适配器模式将现成的对象通过适配变成我们需要的接口。 适配器让原本接口不兼容的类可以合作。

Expand Down
15 changes: 15 additions & 0 deletions docs/advance/distributed/1-global-unique-id.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 全局唯一ID生成方案
category: 分布式
tag:
- 分布式ID
head:
- - meta
- name: keywords
content: 分布式ID,分布式,唯一ID生成方案
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# 全局唯一ID生成方案

传统的单体架构的时候,我们基本是单库然后业务单表的结构。每个业务表的ID一般我们都是从1增,通过`AUTO_INCREMENT=1`设置自增起始值,但是在分布式服务架构模式下分库分表的设计,使得多个库或多个表存储相同的业务数据。这种情况根据数据库的自增ID就会产生相同ID的情况,不能保证主键的唯一性。
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/distributed/2-distributed-lock.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 分布式锁
category: 分布式
tag:
- 分布式锁
head:
- - meta
- name: keywords
content: 分布式锁,分布式
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# 分布式锁

## 为什么要使用分布式锁
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/distributed/3-rpc.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: RPC
category: 分布式
tag:
- RPC
head:
- - meta
- name: keywords
content: RPC,分布式,RPC框架,RPC和HTTP,序列化技术
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# RPC

## RPC简介
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/distributed/4-micro-service.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 微服务
category: 分布式
tag:
- 微服务
head:
- - meta
- name: keywords
content: 微服务,分布式,微服务设计原则,服务网关,微服务通讯方式,微服务框架,微服务链路追踪
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# 微服务

## 什么是微服务?
Expand Down
17 changes: 16 additions & 1 deletion docs/advance/distributed/5-distibuted-arch.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 分布式架构
category: 分布式
tag:
- 分布式架构
head:
- - meta
- name: keywords
content: 分布式架构,限流,熔断
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# 分布式架构,微服务、限流、熔断....

[分布式架构,微服务、限流、熔断....](https://mp.weixin.qq.com/s?__biz=Mzg2OTY1NzY0MQ==&mid=2247490543&idx=1&sn=ee34bee96511d5e548381e0576f8b484&chksm=ce98e6a9f9ef6fbf7db9c2b6d2fed26853a3bc13a50c3228ab57bea55afe0772008cdb1f957b&token=1594696656&lang=zh_CN#rd)
[分布式架构,微服务、限流、熔断....](https://mp.weixin.qq.com/s?__biz=Mzg2OTY1NzY0MQ==&mid=2247490543&idx=1&sn=ee34bee96511d5e548381e0576f8b484&chksm=ce98e6a9f9ef6fbf7db9c2b6d2fed26853a3bc13a50c3228ab57bea55afe0772008cdb1f957b&token=1594696656&lang=zh_CN#rd)
15 changes: 15 additions & 0 deletions docs/advance/distributed/6-distributed-transaction.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: 分布式事务
category: 分布式
tag:
- 分布式事务
head:
- - meta
- name: keywords
content: 分布式事务,强一致性,弱一致性,最终一致性,CAP理论,BASE理论,2PC方案,TCC,本地消息表,saga事务,最大努力通知方案
- - meta
- name: description
content: 分布式常见面试题总结,让天下没有难背的八股文!
---

# 分布式事务

## 简介
Expand Down
15 changes: 15 additions & 0 deletions docs/advance/excellent-article/1-redis-stock-minus.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
sidebar: heading
title: Redis 如何实现库存扣减操作和防止被超卖?
category: 优质文章
tag:
- Redis
head:
- - meta
- name: keywords
content: Redis,库存扣减,超卖问题
- - meta
- name: description
content: 优质文章汇总
---

# Redis 如何实现库存扣减操作和防止被超卖?

电商当项目经验已经非常普遍了,不管你是包装的还是真实的,起码要能讲清楚电商中常见的问题,比如库存的操作怎么防止商品被超卖
Expand Down
Loading

0 comments on commit 393f434

Please sign in to comment.