Reference
AionixFn
Overview

AionixFn

Multi-runtime serverless function platform with version management and traffic routing.

Overview

AionixFn is the compute layer of AionixOne, providing AWS Lambda-like capabilities for running serverless functions locally. It supports multiple runtimes and sophisticated deployment strategies.

TRN Pattern

trn:aionixfn:{tenant}:function/{name}
trn:aionixfn:{tenant}:function/{name}/version/{version}
trn:aionixfn:{tenant}:function/{name}/alias/{alias}

Key Features

  • Multi-Runtime — Python 3.11+, Deno (TypeScript/JavaScript)
  • Version Management — Immutable versions with rollback support
  • Alias System — Named references to specific versions
  • Traffic Routing — A/B testing, canary deployments via traffic weights
  • Resource Isolation — CPU/memory limits via rlimit
  • Observability — Execution logs, function metrics, audit trail

Quick Example

# Create function
aio fn create process-order --runtime python3.11
 
# Deploy version
aio fn deploy process-order --code ./handler.py
 
# Create alias
aio fn alias create process-order prod --version 1
 
# Invoke
aio fn invoke process-order --data '{"orderId": "123"}'

API Endpoints

MethodEndpointDescription
POST/api/v1/functionsCreate function
POST/api/v1/functions/{name}/versionsRegister version
POST/api/v1/functions/{name}/invokeInvoke function
POST/api/v1/functions/{name}/aliases/{alias}/trafficConfigure traffic
GET/api/v1/functions/{name}/logsGet execution logs

Reference Pages


Documentation in progress. Content will be expanded.