by dify · v0.0.1
Call Dubbo services through direct connection or service discovery via registry centers like ZooKeeper or Nacos.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
A powerful Dify plugin for invoking Dubbo services. Supports direct connection to Dubbo services or service discovery through registries (such as ZooKeeper, Nacos). Fully supports complex parameter types, including nested objects, collections, Maps, and multi-parameter method invocations.
License: Apache 2.0 | 中文简体 | English
🚀 Dubbo Invoker — Providing powerful Dubbo service invocation capabilities for AI applications!
Dubbo Invoker is specifically designed for the Dify platform, providing a complete Dubbo service integration solution that enables your AI applications to seamlessly invoke enterprise-level microservices.
# In Dify workspace
Plugins → Marketplace → Search "Dubbo Invoker" → Install
# After downloading .difypkg file
Plugins → Local Installation → Upload package file → Install
# Clone repository
git clone https://github.com/your-repo/dify-plugin-dubbo-invoker.git
cd dify-plugin-dubbo-invoker
# Package plugin
dify plugin package ./
# Install generated .difypkg file
Before using the tool, it's recommended to configure pre-authorization parameters to optimize Dubbo invocations:
Enter Tool Configuration
Configure Pre-authorization Parameters
| Configuration | Default | Description | Example |
|---|---|---|---|
| Dubbo Version | 2.4.10 | Specify Dubbo protocol version, affects serialization compatibility | 2.4.10, 2.6.x, 2.7.15, 3.0.1 |
| Call Timeout | 60000ms | Timeout for Dubbo service calls (milliseconds) | 30000 (30 seconds), 120000 (2 minutes) |
Configuration Notes:
Add Tool to Workflow
Select Dubbo Invoker Tool
Configure Tool Parameters
# Simple string list method call
Registry Address: nacos://192.168.3.111:8848
Interface Name: io.example.api.HelloService
Method Name: sayHelloList
Parameter Types: java.util.List<java.lang.String>
Parameter Values: ["Zhang San", "Li Si", "Wang Wu"]
# Complex object list method
Registry Address: nacos://192.168.3.111:8848
Interface Name: io.example.api.UserService
Method Name: batchCreateUsers
Parameter Types: java.util.List<io.example.dto.UserRequest>
Parameter Values: >
[
{"name":"Zhang San","age":25,"email":"zhangsan@example.com"},
{"name":"Li Si","age":30,"email":"lisi@example.com"}
]
# Multi-parameter mixed type call
Registry Address: nacos://192.168.3.111:8848
Interface Name: io.example.api.UserService
Method Name: updateUser
Parameter Types: java.lang.Long,io.example.dto.UserRequest,java.lang.Boolean
Parameter Values: >
[
123,
{"name":"Zhang San","age":26,"email":"zhangsan@example.com"},
true
]
# Direct connection call without registry
Service URI: dubbo://192.168.3.55:20880
Interface Name: io.example.api.UserService
Method Name: getUserById
Parameter Types: java.lang.Long
Parameter Values: 123
int, long, float, double, boolean, byte, short, charjava.lang.Integer, java.lang.String, java.lang.Boolean, etc.java.util.List<T>, java.util.Map<K,V>, java.util.Set<T>int[], String[], CustomObject[]These configurations are set at the plugin level and apply to all calls:
| Field | Type | Default | Description |
|---|---|---|---|
| Dubbo Version | String | 2.4.10 | Dubbo protocol version, affects serialization compatibility |
| Call Timeout | String | 60000 | Timeout for all Dubbo calls |
Version Compatibility Guide:
2.4.x - Classic version, compatible with most legacy systems2.6.x - Stable version, recommended for production environments2.7.x - Feature version, supports more protocols3.0.x - Latest version, cloud-native features| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| Interface Name | String | Yes | Complete Dubbo interface class name | io.example.api.UserService |
| Method Name | String | Yes | Method name to invoke | getUserById |
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| Registry Address | String | Optional* | Registry server address | nacos://192.168.3.111:8848 |
| Service URI | String | Optional* | Direct connection service URI address | dubbo://127.0.0.1:20880 |
*Note: Registry Address and Service URI must provide one (cannot provide both)
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| Parameter Types | String | Optional | Java parameter types, comma-separated for multiple | java.lang.String,java.lang.Integer |
| Parameter Values | String | Optional | JSON format parameter values | ["Zhang San", 25] |
Check Server Version:
# Check server Dubbo version
grep dubbo pom.xml
# Or check service startup logs
Version Matching Strategy:
Adjust based on service type:
30000ms (30 seconds)60000ms (60 seconds) - Default120000ms (2 minutes)300000ms (5 minutes)Monitoring and Optimization:
# Monitor call time in workflow
Start Time: {{start_time}}
Call Result: {{dubbo_result}}
Elapsed Time: {{elapsed_time}}
major.minor.patch or major.minor.x formatYou can use Dify workflow variables in any field:
Registry Address: {{registry_url}}
Interface Name: {{service_interface}}
Method Name: getUserById
Parameter Types: java.lang.Long
Parameter Values: {{user_id}}
Quick Variable Insertion:
/ in any field to see available variables{{variable_name}}# Pre-authorization configuration errors
Dubbo Version: 2.4 # Incomplete version format
Call Timeout: 0 # Invalid timeout
Call Timeout: 500000 # Exceeds maximum limit
# Tool parameter configuration errors
Parameter Types: java.util.List # Missing generic type
Parameter Values: "param1", 123, "param2" # Multi-param not using array format
# Pre-authorization configuration correct
Dubbo Version: 2.6.x # Correct version format
Call Timeout: 60000 # Reasonable timeout (milliseconds)
# Tool parameter configuration correct
Parameter Types: java.util.List<java.lang.String> # Complete generic type
Parameter Values: ["param1", 123, "param2"] # Multi-param using JSON array
Registry Address: nacos://192.168.3.111:8848 # Use only one connection method
Service URI: [empty] # Keep other blank
This plugin is built on an extensible protocol framework design:
We welcome code contributions, issue reports, and feature requests!
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the Apache License 2.0.
Providing Dubbo service invocation capabilities for the Dify platform.
dify-plugin dubbo rpc microservices nacos zookeeper java service-discovery
📄 Documentation