gRPC vs Thrift

Posted by 夏泽民

g.csdn.net/dazheng/article/details/48830511



gRPC ProtoBuf

Posted by 夏泽民

https://doc.oschina.net/grpc?t=60133 https://chai2010.cn/advanced-go-programming-book/ch4-rpc/ch4-05-grpc-hack.html https://blog.didiyun.com/index.php/2018/12/12/grpc-golang-1/



runtime.Caller runtime.FuncForPC

Posted by 夏泽民

https://github.com/unknwon/gcblog/blob/master/content/04-go-caller.md



scp

Posted by 夏泽民

cp -C应该被认为只是一种方便.如果文件可以被显着压缩,那么最好首先在源上压缩它,传输压缩的表单,最后在目标上压缩 但是只是针对单个文件进行压缩如果是多个小文件最好用 tar -zcvf go1.10.tar ./ $scp go1.10.tar xiaoju@10.96.83.51:/home/xiaoju/goLang/src/github.com/go 使用ssh+tar 传输文件与scp比较 使用cat 输出文件 tar -zcvf - ./ |ssh posp@192.168.3.55 “cat >/home/posp/xxx.tar.gz real 1m26.803s user 1m21.459s sys 0m5.323s 使用dd生成文件 tar -zcvf - ./ |ssh posp@192.168.3.55 “dd of=/home/posp/xxx.tar.gz real 1m27.242s user 1m21.475s sys 0m5.840s 直接在传输的时候直接解压 tar -zcvf - ./ |ssh posp@192.168.3.55 “tar -zxvf - -C /home/posp/trans1” real 1m27.242s user 1m21.475s sys 0m5.840s 使用Scp传输文件(没有压缩) scp -r ./ posp@192.168.3.55:/home/posp/chenchen_test/trans1 real 6m54.000s user 0m41.940s sys 0m12.742s ps: 因为空洞文件压缩后会非常小,没有压缩传输的话非常耗费时间



Replication Controller、Replica Set

Posted by 夏泽民

Replication Controller(RC) 应用托管在K8S后,K8S需要保证应用能够持续运行,这是RC的工作内容。



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required