-
Notifications
You must be signed in to change notification settings - Fork 16
EndpointBroker
Vinod Sathyaseelan edited this page Aug 14, 2025
·
2 revisions
The Endpoint Broker is a critical component in Ripple that manages and routes requests to different endpoints based on configured rules.
The Endpoint Broker serves as a routing layer that handles communication between Firebolt applications and various backend services. It determines which endpoint should handle each request based on the configured rules in the ripple.common.rules.json file.
- Dynamic endpoint routing based on method patterns
- Support for multiple endpoint types:
- Thunder (WebSocket)
- HTTP
- WebSocket
- Workflow
- Extension (extn)
- Protocol: WebSocket
- Default URL:
ws://127.0.0.1:9998/jsonrpc - Used for communicating with Thunder plugins
- Handles JSON-RPC 2.0 messages
- Protocol: HTTP
- Supports REST API calls
- Can be configured with or without JSON-RPC formatting
- Protocol: WebSocket
- Supports persistent connections
- Used for event-based communication
- Special endpoint type for handling complex workflows
- Can aggregate multiple method calls into a single response
- Supports source transformations
- Used for Ripple extensions
- Handles distributor-specific implementations
- Routes requests to custom extension handlers
Endpoints are configured in the ripple.common.rules.json file under the endpoints section. Each endpoint configuration includes:
- Protocol
- URL
- JSON-RPC flag (where applicable)
Example configuration:
{
"thunder": {
"protocol": "thunder",
"url": "ws://127.0.0.1:9998/jsonrpc"
},
"asSocket": {
"protocol": "websocket",
"url": "ws://127.0.0.1:9005/as",
"jsonrpc": false
}
}- Client makes a request with a specific method
- Endpoint Broker matches the method against rules
- Determines the appropriate endpoint
- Applies any necessary transformations
- Routes request to the endpoint
- Returns response to client (with any response transformations applied)
© 2025 RDK Management, LLC (and contributors). Firebolt® is a registered mark of its owner.