加载中
rxjs 单播 多播

单播: import { interval, map, take } from "rxjs"; let a = interval(1000).pipe(take(4), map(() => new Date())) a.subscribe((val)=>console.log("#1",val)) a.subscribe((val)=>conso...

2022/08/12 18:41
32
planet

planet

2022/04/24 20:11
98
ssh "permissions are too open" error

Keys need to be only readable by you: chmod 400 ~/.ssh/id_rsa If Keys need to be read-writable by you: chmod 600 ~/.ssh/id_rsa 600 appears to be fine as well (in fact better in ...

2021/12/21 21:33
43
系统设计

IM系统 红包系统 交易订单系统

2021/12/06 18:12
77
分布式系统基础

有状态实例VS无状态实例 无状态实例:每个运行的实例不需要自己持久化(存储)数据;多个实例可以共享相同的持久化数据;可以轻易地进行扩缩容。 有状态实例:每个运行的实例都需要自己持久化(...

2021/11/25 12:19
187
cluster-容错机制:failover、failfast、failback、failsafe

failover:故障转移 当出现失败,重试其它服务器,通常用于读操作(推荐使用)。 重试会带来更长延迟。 protected RpcResult doInvoke(RpcInvocation invocation, List> invokers) throws Th...

2021/10/08 16:55
831
Flex布局

.l-layout { display: flex; flex-direction: column; height: 100%; .l-header { height: 60px; } .l-content { flex-grow: 1; overflow: auto; height: 0; //纵向需......

2021/08/18 12:51
9
UML 活动图

1

2021/07/22 11:50
51
服务的有状态和无状态

对服务器程序来说,究竟是有状态服务,还是无状态服务,其判断依旧——两个来自相同发起者的请求在服务器端是否具备上下文关系。 状态化请求,服务器端一般都要保存请求的相关信息,每个请求...

2021/07/20 16:54
65
golang fmt String()、Error()、Format()、GoString()优先级

func (p *pp) handleMethods(verb rune) (handled bool) { if p.erroring { return } if verb == 'w' { // It is invalid to use %w other than with Errorf, more than once, // or with a ...

2021/06/15 17:17
325
大O

知道某个算法的运行速度和占用的内存空间,对于选择正确的算法来解决问题非常有帮助。 大O表示法 能让你对一个算法的运行时间和占用内存有个大概概念。当有人说,“这个算法在最糟情况下的运...

2021/04/13 19:56
120
maven scope

There are 6 scopes: compile This is the default scope, used if none is specified. Compile dependencies are available in all classpaths of a project. Furthermore, those dependenc...

File

File Path URI URL FileDescriptor

2021/01/18 14:22
206
gitignore 生效

git rm -r --cached .

2021/01/07 16:28
203
mysql explain

2020/12/07 16:37
80

没有更多内容

加载失败,请刷新页面

返回顶部
顶部