内容简介:gRPC 1.10.0 已正式发布,该版本包含了大量改进和 bug 修复,具体如下: Core To provide a cleaner install with fewer public headers, several features of core have been removed from the surface or GPR ...
gRPC 1.10.0 已正式发布,该版本包含了大量改进和 bug 修复,具体如下:
Core
To provide a cleaner install with fewer public headers, several features of core have been removed from the surface or GPR API as they were not used in any wrapped language (except C++) or in external applications, such as:
a.grpc_alarm(removed; the C++grpc::Alarmnow directly invokes core subsurface functions)
b.gpr_join_host_port,gpr_cmdline,gpr_subprocess(moved totest/core/util)
c.gpr_tls,gpr_avl(internalized)
d.gpr_thd(internalized)Except
gpr_thd_idandgpr_thd_currentid, which remain publicAs a result of these changes, core is now at version 6.0.0
Fix memory leaks in
max_age_filter(#14501) and http_proxy (#14137)Changed resolver and LB policy APIs to C++
Added re-resolution into grpclb policy (#14438).
Extracted per LB-call data from grpclb policy (#13911)
Fixed C-core to immediately take ownership of slices when a
send_messageop is startedFix a race condition causing freeze at shutdown with
epollexpolling strategy (#14177)Improvements in CMake:
find_package(#14353)Test infrastructure cleanup (#14117)
Update BoringSSL submodule (#13948)
Make RR re-resolve when any of its subchannels fail (#14170)
DNS resolver caches results, allowing it to be hit arbitrarily often. Resolution frequency is controlled via channel arg
GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS. (#14228)
详情更新内容和源码下载:https://github.com/grpc/grpc/releases/tag/v1.10.0
gRPC 是一个高性能、开源、通用的 RPC 框架,面向移动和 HTTP/2 设计,是由谷歌发布的首款基于 Protocol Buffers 的 RPC 框架。目前提供 C、 Java 和 Go 语言版本,分别是:grpc, grpc-java, grpc-go. 其中 C 版本支持 C, C++, Node.js, Python, Ruby, Objective-C, PHP 和 C#。
gRPC 基于 HTTP/2 标准设计,带来诸如双向流、流控、头部压缩、单 TCP 连接上的多复用请求等特性。这些特性使得其在移动设备上表现更好,更省电且节省空间占用。

服务接口定义示例:
message HelloRequest {
string greeting = 1;
}
message HelloResponse {
string reply = 1;
}
service HelloService {
rpc SayHello(HelloRequest) returns (HelloResponse);
}【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- Swoole + Laravel 实现高性能框架
- 高性能异步框架Celery入坑指南
- python高性能微服务框架japronto
- 腾讯高性能的图片框架 LKImageKit 正式开源
- 轻量级高性能PHP框架ycroute
- go-netty 高性能网络框架
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
可爱的Python
哲思社区 / 电子工业出版社 / 2009-9 / 55.00元
本书的内容主要来自CPyUG社区的邮件列表,由Python的行者根据自身经验组织而成,是为从来没有听说过Python的其他语言程序员准备的一份实用的导学性质的书。笔者试图将优化后的学习体验,通过故事的方式传达给读者,同时也分享了蟒样(Pythonic式)的知识获取技巧,而且希望将最常用的代码和思路,通过作弊条(Cheat Sheet,提示表单)的形式分享给有初步基础的Python 用户,来帮助大家......一起来看看 《可爱的Python》 这本书的介绍吧!