route() | method() | topic() | endpoint()HTTP, gRPC, Kafka, and Custom endpoints
Create concrete endpoints whose parameters match their connector transport.
When to use
Pass returned Endpoint objects to Pipeline.input or Pipeline.sink.
Behavior
- Every endpoint requires Function metadata and derives its key from name.
- Endpoint objects retain their owning Connector and expose function_name for inspection.
- Kafka topic options control provisioning and consumer behavior as well as topic identity.
HttpConnector.route() properties
HTTP endpoint.
namestrEndpoint name.
RequiredfunctionFunctionBusiness callback metadata used to generate the implementation contract.
RequiredmethodHTTPMethodTypeHTTP method enum.
RequiredpathstrRoute path.
Requiredtracing_enabledbool | NoneInbound tracing override.
Default:NoneGrpcConnector.method() properties
gRPC endpoint.
name / functionstr / FunctionEndpoint identity and callback.
Requiredmethod_namestrRPC method name.
Requiredmethod_typeGrpcMethodTypeNoStreaming, ClientStreaming, ServerStreaming, or BidirectionalStreaming.
Default:NoStreamingtracing_enabledbool | NoneInbound tracing override.
Default:NoneKafkaConnector.topic() properties
Kafka endpoint.
name / function / topicstr / Function / strEndpoint identity, callback, and Kafka topic.
RequiredenabledboolEnable runtime integration.
Default:Truecreate_topicbool | NoneAllow generated provisioning.
Default:Nonepartitions / replication_factorint | NoneProvisioned topic shape.
Default:Noneconsumer_groupstr | NoneConsumer group identity.
Default:Noneuse_partitionerbool | NoneUse configured producer partitioning.
Default:NoneCustomConnector.endpoint() properties
Custom integration endpoint.
namestrEndpoint name.
RequiredfunctionFunctionBusiness callback metadata used to generate the implementation contract.
Requiredtracing_enabledbool | NoneTracing override.
Default:NonePython example
create_order = http.route(
"Create Order",
function=Function(name="CreateOrder", package=endpoint_package),
method=HTTPMethodType.POST,
path="/v1/orders",
)
order_created = kafka.topic(
"Order Created",
function=Function(name="OrderCreated", module=LOCAL_MODULE),
topic="orders.created",
consumer_group="orderservice",
)