摘要:
Adding certificate information to a server implementation is twofold: implement logic to load credentials and create a TransportCredentials(http://mng
阅读全文
posted @ 2023-11-19 15:32
ZhangZhihuiAAA
阅读(28)
推荐(0)
摘要:
zzh@ZZHPC:~$ openssl req --help Usage: req [options] General options: -help Display this summary -engine val Use engine, possibly a hardware device -k
阅读全文
posted @ 2023-11-19 15:26
ZhangZhihuiAAA
阅读(49)
推荐(0)
摘要:
The retry pattern works well for covering transient failures, but if we don’t know how long the problem will last, we may end up putting a high load o
阅读全文
posted @ 2023-11-19 13:05
ZhangZhihuiAAA
阅读(19)
推荐(0)
摘要:
Retry Pattern Transient faults occur when a momentary loss of service functionality self-corrects. The retry pattern in gRPC enables us to retry a fai
阅读全文
posted @ 2023-11-19 10:53
ZhangZhihuiAAA
阅读(45)
推荐(0)
摘要:
Timeout Pattern What is context.Context? The context in Go enables you to specify deadlines, cancellation signals, or key-value pairs available betwee
阅读全文
posted @ 2023-11-19 09:54
ZhangZhihuiAAA
阅读(28)
推荐(0)
posted @ 2023-11-17 16:06
ZhangZhihuiAAA
阅读(10)
推荐(0)
摘要:
zzh@ZZHPC:~$ docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=verysecretpass -e MYSQL_DATABASE=order mysql In this case, our data source URL isroot:very
阅读全文
posted @ 2023-11-17 11:01
ZhangZhihuiAAA
阅读(58)
推荐(0)
摘要:
grpc.go is for defining the handlers, and server.go mostly runs the server and register endpoints inside the grpc.go file. While there are no written
阅读全文
posted @ 2023-11-16 08:25
ZhangZhihuiAAA
阅读(45)
推荐(0)
摘要:
Hexagonal architecture (https://alistair.cockburn.us/hexagonal-architecture/), proposed by Alistair Cockburn in 2005, is an architectural pattern that
阅读全文
posted @ 2023-11-15 21:09
ZhangZhihuiAAA
阅读(41)
推荐(0)
摘要:
zzh@ZZHPC:~$ sudo apt install -y protobuf-compiler zzh@ZZHPC:/zdata/Github/zimplebank$ protoc --versionlibprotoc 3.12.4 This version is too old. zzh@Z
阅读全文
posted @ 2023-11-14 19:22
ZhangZhihuiAAA
阅读(127)
推荐(0)