Initialize the SDK
Connect to the III Engine by initializing the SDK with your engine’s WebSocket URL:- Establishes a WebSocket connection to the engine
- Initializes OpenTelemetry for distributed tracing
- Sets up automatic reconnection on connection loss
Register a Function
Functions are the building blocks of III applications. Register a function to make it callable by other services:Use
:: to namespace your functions (e.g., service::function_name). This helps organize functions by service.Call a Function
Call any registered function across the III network:Access Context
Every function handler has access to a context with a logger and trace span:Register an HTTP Trigger
Expose functions as HTTP endpoints:http://localhost:3199/users/:id (default engine HTTP port).
Complete Example
Here’s a complete application that registers a function and an HTTP endpoint:Next Steps
Functions
Learn about function handlers and registration
Triggers
Explore trigger types and HTTP endpoints
Context
Use context for logging and tracing
Channels
Stream data between functions