grpc

阿里 双11 同款流控降级组件 Sentinel Go 正式 GA,助力云原生服务稳稳稳

假装没事ソ 提交于 2020-12-08 17:12:55
作者 | 赵奕豪(宿何) Sentinel 开源项目负责人 来源| 阿里巴巴云原生公众号 前言 微服务的稳定性一直是开发者非常关注的话题。随着业务从单体架构向分布式架构演进以及部署方式的变化,服务之间的依赖关系变得越来越复杂,业务系统也面临着巨大的高可用挑战。 在生产环境中大家可能遇到过各种不稳定的情况,比如: 大促时瞬间洪峰流量导致系统超出最大负载,load 飙高,系统崩溃导致用户无法下单。 “黑马”热点商品击穿缓存,DB 被打垮,挤占正常流量。 调用端被不稳定第三方服务拖垮,线程池被占满,调用堆积,导致整个调用链路卡死。 这些不稳定的场景可能会导致严重后果,但很多时候我们又容易忽视这些与流量/依赖相关的高可用防护。大家可能想问:如何预防这些不稳定因素带来的影响?如何针对流量进行高可用的防护?如何保障服务“稳如磐石”?这时候我们就要请出阿里双十一同款的高可用防护中间件 —— Sentinel。在今年刚刚过去的天猫 双11 大促中,Sentinel 完美地保障了阿里成千上万服务 双11 峰值流量的稳定性,同时 Sentinel Go 版本也在近期正式宣布 GA。下面我们来一起了解下 Sentinel Go 的核心场景以及社区在云原生方面的探索。 Sentinel 介绍 Sentinel 是阿里巴巴开源的,面向分布式服务架构的流量控制组件,主要以流量为切入点,从限流、流量整形

Could not find TLS ALPN provider; no working netty-tcnative, Conscrypt, or Jetty NPN/ALPN available

我们两清 提交于 2020-12-08 07:23:51
问题 What version of gRPC are you using? 1.13.1 I am using java 8 to build an executable jar. Below is the java version: $ /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/java -version openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-2~14.04-b11) OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode) I am using gradle 3.4.1 to generate the jar as follows: /opt/gradle-3.4.1/bin/gradle jar -Dorg.gradle.java.home=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ Below are the

Python not able to connect to grpc channel -> “failed to connect to all addresses” “grpc_status”:14

耗尽温柔 提交于 2020-12-08 05:34:31
问题 I'm getting the error below when trying to call a stub method. Any idea what is causing it? [bolt.api.handlers] 2019-08-21 20:07:57,792 ERROR handlers:1066: 'ResourceHandler' object has no attribute 'ontology_service_handler' Traceback (most recent call last): File "/bolt-webserver/bolt/api/onse/onse_handlers/ontology_service.py", line 17, in post ontology_id = await self.onse_stub.createOntology() File "/bolt-webserver/bolt/api/onse/onse_stub.py", line 41, in createOntology return self.stub

How can I serve files while using GRPC

China☆狼群 提交于 2020-12-06 08:25:40
问题 Is there any way how to serve files in Go with GRPC, like in gin-gonic's variant: router.Static("/static", "/var/www") 回答1: You can't do it exactly like that. But you can use the proto bytes type and put the file bytes in that field. Also (as pointed out in the comments) with large files you should use streaming instead of a unary call. (most GRPC implementation have a limit of 4MB per message). Proto example: syntax = "proto3"; message Response { bytes fileChunk = 1; } message Request {

真香!阿里、腾讯、百度、京东等多位架构师鼎力推荐SpringCloud笔记

老子叫甜甜 提交于 2020-12-05 15:14:19
前言 过去十几年里,广义的“微服务”架构以其小团队快速创建和迭代服务带来的架构弹性、扩展性、敏捷性,天然匹配了互联网业务快速发展和变化的特点,在各大互联网公司取得了巨大的成功。时至云原生应用时代,已不再是是否采用微服务架构的问题,而是何时采用以及如何在生产上实战的问题。 今天分享的这份学习资料:讲解将如何基于Spring Cloud生态体系进行微服务实战的方方面面的细节都涵盖了,从这个意义上来讲,确实做到了“重新定义”。 本书内容有3大特色: 足够广:详细讲解了Spring Cloud的核心常用组件以及Spring Cloud的增强生态,针对生产实践中常见问题给出可落地的&*佳实践方案,无论您是初学者还是开发人员,还是架构师,都能从此书获益。 有深度:本书对涉及的Spring Cloud组件按照从入门、进阶、实战、扩展增强的顺序循序渐进进行剖析和讲解,帮助作者知其然并知其所以然,授之以渔。 重实践:注重生产实践,通过案例驱动,给出优秀的生产实践方案和优秀的生产配置,帮助读者快速落地企业微服务架构。 本书大牛出版: 本书由Spring Cloud中国社区官方撰写,基于Spring Cloud的Finchley.RELEASE版本,基于Spring Cloud的Finchley.RELEASE版本,核心成员来自原阿里、蚂蚁金服、京东金融等互联网企业,经验丰富。 本书内容有3大特色

Cross compiling gRPC using cmake

假如想象 提交于 2020-12-04 08:24:57
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

Cross compiling gRPC using cmake

大兔子大兔子 提交于 2020-12-04 08:24:39
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

Cross compiling gRPC using cmake

廉价感情. 提交于 2020-12-04 08:24:18
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

深度剖析Service Mesh服务网格新生代Istio

会有一股神秘感。 提交于 2020-12-03 15:12:14
Service Mesh新秀,初出茅庐便声势浩荡,前有Google,IBM和Lyft倾情奉献,后有业界大佬俯首膜拜,这就是今天将要介绍的主角,扛起Service Mesh大旗,掀起新一轮微服务开发浪潮的Istio! 今天的主角名叫 Istio,估计很多同学在此之前可能完全没有听过这个名字。请不必介意,没听过很正常,因为Istio的确是一个非常新的东西,出世也才四个月而已。 今天的内容将会分成三个部分: 1.介绍: 让大家了解Istio是什么,以及有什么好处,以及Istio背后的开发团队 2.架构: 介绍Istio的整体架构和四个主要功能模块的具体功能,这块内容会比较偏技术 3.展望: 介绍Istio的后续开发计划,探讨未来的发展预期 一、介绍 Istio是什么:Istio是Google/IBM/Lyft联合开发的开源项目,2017年5月发布第一个release 0.1.0, 官方定义为: Istio:一个连接,管理和保护微服务的开放平台。 按照isito文档中给出的定义: Istio提供一种简单的方式来建立已部署的服务的网络,具备负载均衡,服务到服务认证,监控等等功能,而不需要改动任何服务代码。 简单的说,有了Istio,你的服务就不再需要任何微服务开发框架(典型如Spring Cloud,Dubbo),也不再需要自己动手实现各种复杂的服务治理的功能(很多是Spring