gRPC(Google Remote Procedure Calls)
gRPC是一个高性能、开源、通用的RPC框架,面向移动和HTTP/2设计,基于Protocol Buffers的RPC框架
基于HTTP/2标准设计,支持 双向流、头部压缩、单TCP连接上的多复用请求等特性 ,省电且省空间
招行年报 2%的人掌握80%资产
头部0.07%富豪群体,持有31.54%的资产,人均资产 2780.43万,
中部2.05%中产群体,持有50.58%的资产,人均资产153.31万,
占总数97.88%的一般客户,持有的资产仅有17.87%,人均资产1.14万元
Since Akka enforces parental supervision every actor is supervised and (potentially) the supervisor of its children,
it is advisable to familiarize with Actor Systems, supervision and handling exceptions as well as Actor References, Paths and Addresses.
Using ask will send a message to the receiving Actor as with tell,
and the receiving actor must reply with sender() ! reply in order to complete the returned Future with a value.
The ask operation involves creating an internal actor for handling this reply,
which needs to have a timeout after which it is destroyed in order not to leak resources
Actors were defined in the 1973 paper by Carl Hewitt but have been popularized by the Erlang language and used for example at Ericsson with great success to build highly concurrent and reliable telecom systems.
1825年英国第一次爆发经济危机,
19世纪,大约每隔10年周期地爆发一次经济危机,
20世纪,经济危机缩短到大约每隔7~8年爆发一次
第二次世界大战以后,一些主要资本主义国家经济危机的周期时间 缩短到大约5年左右爆发一次
你能在浪费时间中获得乐趣,那就不是浪费时间
小国和小国起纠纷,联合国去调解,纠纷没了
大国和小国起纠纷,联合国去调解,小国没了
大国和大国起纠纷,联合国去调解,联合国没了
哲学的本质就是让你走出自己大脑中的认知世界,去发现外面真实世界的本来面目,帮你做出正确的选择和判断
--周秉义
什么是异步化 ? 仅仅是方法返回值变成future?
应用或架构层面的“异步” 不是代码上的异步 ,而是流程上的异步
把 非关键 或 非实时响应的 或 耗时操作 或 不稳定的危险的操作 从主流程上拿出去
譬如 用户下单后 发个 告知邮件
可以 往 数据库 写一条发邮件的任务 ,后台定时调度发送
这种 剥离 隔离的机制 可以保证主干流程的性能和稳定性 这才是异步的价值
第一页
上一页
下一页
最后一页