RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

    • Endpoint Overview
    • Quick Start
    • Router
    • DSL
    • API
    • Options
    • Endpoints

      • Rest Endpoint
      • Websocket Endpoint
      • MQTT Endpoint
      • Schedule Endpoint
      • Net Endpoint
      • Kafka Endpoint
      • Nats Endpoint
      • Redis Sub Endpoint
      • Redis Stream Endpoint
      • Rabbitmq Endpoint
      • MYSQL CDC Endpoint
      • OPC_UA Endpoint
      • gRPC Stream Endpoint
        • Features
        • Type
        • Configuration Parameters
        • Routing Configuration
        • Configuration Example
        • Output Parameters
      • Beanstalkd Endpoint
      • Wukongim Endpoint
      • Extend Endpoint
  • Support

目录

gRPC Stream Endpoint

gRPC Stream Endpoint v0.28.0+ provides an endpoint implementation based on gRPC streaming communication, supporting the establishment of long connections with gRPC servers, receiving messages pushed by the server, and processing them through routing and forwarding.

# Features

  • Automatic Reconnection: Automatically attempts to re-establish the connection when it is disconnected.
  • Single Routing Mode: Each endpoint instance only supports configuring one message processing route.
  • Shared Connection: Multiple endpoint instances with the same server address (Server) will reuse the same gRPC connection to avoid redundant connection creation.

# Type

endpoint/grpc/stream

# Configuration Parameters

Field Type Description Default Value
server string gRPC server address 127.0.0.1:9000
service string gRPC service name ble.DataService
method string gRPC method name StreamData
headers map[string]string Request headers None
request string Request data (JSON format) None
checkInterval int gRPC server check interval (milliseconds) 10000

# Routing Configuration

Only one route is allowed, and the from.path of the route must be set to *, indicating the processing of messages from all sources.

# Configuration Example

{
  "id": "GRPC Stream",
  "type": "endpoint/grpc/stream",
  "name": "GRPC Stream",
  "debugMode": false,
  "configuration": {
    "server": "127.0.0.1:9000",
    "service": "helloworld.Greeter",
    "method": "SayHello",
    "checkInterval": 10000
  },
  "routers": [
    {
      "from": {
        "path": "*"
      },
      "to": {
        "path": "bkn3fIAr8x4w:MQTT",
        "wait": false
      }
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# Output Parameters

Messages received from the gRPC server are converted to the RuleMsg format and sent to the rule chain:

  • data: JSON format data returned by the gRPC server
  • dataType: JSON
  • type: Default is empty
Edit this page on GitHub (opens new window)
Last Updated: 2025/03/31, 01:52:11
OPC_UA Endpoint
Beanstalkd Endpoint

← OPC_UA Endpoint Beanstalkd Endpoint→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式