Skip to main content

Okustera Serverless Functions

Okustera Serverless Functions provide event-driven compute with isolated user-space kernel sandboxing and automatic scale-to-zero elasticity.

Deploy functions written in Python, Node.js, Go, Java, .NET, or custom OCI containers without provisioning or managing underlying servers.

Okustera Serverless Functions (FaaS) Console


Isolated User-Space Kernel Sandboxing​

Unlike traditional container platforms where application code shares the host Linux kernel directly, Okustera Serverless executes every function inside an isolated user-space kernel sandbox:

  • Multi-Tenant Defense-in-Depth: Hardware-grade syscall isolation prevents container breakout vulnerabilities from affecting adjacent workloads or underlying compute hosts.
  • Fast Cold Starts: Optimized runtime images deliver cold-start execution times in under 200 ms, with optional warm minimum replicas (min_replicas >= 1) for latency-sensitive endpoints.
  • Zero-Trust Network Controls: Strict egress policies block unauthorized cross-tenant traffic and prevent access to internal cloud metadata endpoints (169.254.169.254).
  • AI Agent Execution Support: Powers ephemeral, sandboxed execution environments for autonomous AI workflows alongside the AI Inference PaaS.

Multi-Tenant Isolation & Quotas​

Every serverless function in Okustera is strictly scoped to its owning tenant project:

  • Project Isolation: Functions run inside dedicated, tenant-isolated execution boundaries with zero shared runtime state across projects.
  • RBAC & API Protection: Callers authenticating via Personal Access Tokens (PAT) or Workload Identity can only read, invoke, update, or delete functions within their authorized project.
  • Network Segregation: Automated network policies prevent unauthorized east-west communication between tenants.
  • Predictable Quotas: Each tenant project includes a configurable function quota (default: 20 functions, expandable via Tenant Quotas).

Supported Language Runtimes & Catalog​

Okustera supports modern, optimized language runtimes with built-in HTTP handlers and automatic JSON parsing:

Runtime IDDisplay NameLanguageHandler FilenameStatusDescription
python314Python 3.14Pythonhandler.pyactiveCutting-edge Python 3.14 runtime with interpreter speedups.
python313Python 3.13Pythonhandler.pyactiveModern Python 3.13 runtime.
python3-httpPython 3Pythonhandler.pyactiveStandard enterprise Python 3 HTTP micro-function.
node22Node.js 22 LTSJavaScript / TShandler.jsactiveHigh-throughput asynchronous runtime with V8 12.4.
node20Node.js 20 LTSJavaScript / TShandler.jsdeprecatedStable LTS. Reaching maintenance window; sunset Dec 31, 2026.
golang-httpGo 1.23Gomain.goactiveCompiled, ultra-fast Go 1.23 microservice (net/http).
golang122Go 1.22Gomain.goactiveStable enterprise Golang 1.22 runtime.
java21Java 21 LTSJavaHandler.javaactiveModern JVM runtime with Project Loom Virtual Threads.
java17Java 17 LTSJavaHandler.javaactiveLong-term support JVM microservice runtime.
dotnet9.NET 9.0C#FunctionHandler.csactiveHigh-performance C# microservice powered by Kestrel.
dotnet8.NET 8.0 LTSC#FunctionHandler.csactiveEnterprise Long-Term Support C# Kestrel runtime.

Language Starter Handlers & Code Boilerplates​

1. Python (python314 / python313 / python3-http)​

import json

def handle(req):
"""
Okustera Python Serverless Handler
:param req: The incoming request payload (str or parsed JSON)
:return: dict or str response
"""
try:
data = json.loads(req) if isinstance(req, str) and req else req
except Exception:
data = req

return {
"status": "success",
"message": "Hello from Okustera Serverless Python Function!",
"received_data": data,
}

2. Node.js (node22 / node20)​

'use strict';

module.exports = async (event, context) => {
let body = event.body;
try {
if (typeof body === 'string' && body.length > 0) {
body = JSON.parse(body);
}
} catch (e) {
// use raw body
}

return context
.status(200)
.headers({ 'Content-Type': 'application/json' })
.succeed({
status: 'success',
message: 'Hello from Okustera Serverless Node.js Function!',
received_data: body
});
};

3. Go (golang-http / golang122)​

package main

import (
"encoding/json"
"io"
"net/http"
)

func Handle(w http.ResponseWriter, r *http.Request) {
var body []byte
if r.Body != nil {
body, _ = io.ReadAll(r.Body)
}

resp := map[string]interface{}{
"status": "success",
"message": "Hello from Okustera Serverless Go Function!",
"received_size": len(body),
}

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(resp)
}

4. Java 21 LTS (java21 / java17)​

package com.okustera.function;

import java.util.Map;

public class Handler {
public Map<String, Object> handle(String body) {
int inputBytes = body != null ? body.length() : 0;
return Map.of(
"status", "success",
"message", "Hello from Okustera Serverless Java 21 LTS!",
"input_bytes", inputBytes
);
}
}

5. .NET 9.0 / 8.0 C# (dotnet9 / dotnet8)​

using System;
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;

namespace Okustera.Serverless
{
public class FunctionHandler
{
public async Task<string> Execute(HttpRequest request)
{
string body = await new StreamReader(request.Body).ReadToEndAsync();

var response = new
{
status = "success",
message = "Hello from Okustera Serverless .NET Function!",
timestamp = DateTime.UtcNow,
received_payload = string.IsNullOrWhiteSpace(body) ? null : body
};

return JsonSerializer.Serialize(response);
}
}
}

Execution Geometry & Sizing Tiers​

When deploying a function via the Cloud Portal, REST API, or Terraform, configure granular compute constraints:

Configuration ParameterPermitted RangeDefault ValueDescription
memory_limit128Mi to 2048Mi128MiMaximum RAM allocated to each isolated function instance.
cpu_limit100m to 1000m100mCPU time slice quota (100m = 0.1 core, 1000m = 1 dedicated core).
min_replicas0 to 200Set to 0 to scale to zero when idle; set to 1+ to eliminate cold starts.
max_replicas1 to 505Maximum horizontal autoscaling concurrency limit.
Execution Timeout5s to 300s30sMaximum execution duration before the gateway returns 504 Gateway Timeout.

Shared Dependency Layers​

Okustera Serverless provides AWS Lambda-compatible shared dependency layers. Instead of repeatedly bundling large libraries (such as NumPy, Pandas, or internal SDKs) inside every function deployment, publish immutable dependency layers once and attach up to 5 layers per function via the Cloud Portal, REST API (/api/v1/layers), or Terraform.

  • Zero Image Rebuild Overhead: Attached layers are automatically mounted read-only at runtime with language import paths (PYTHONPATH, NODE_PATH, LD_LIBRARY_PATH) pre-configured.
  • Immutable Versioned Snapshots: Every layer version is cryptographically checksummed (SHA-256) and immutable so production functions remain reproducible.
  • Multi-Tenant Access & Sharing:
    • private: Accessible only to the owning tenant project.
    • shared: Explicitly shared with designated partner projects via okustera_layer_permission.
    • public: Curated system layers available across all projects (standard data science libraries, database drivers, HTTP clients).

Terraform Function & Layer Declaration​

# 1. Define a shared dependency layer
resource "okustera_layer" "analytics_layer" {
name = "python-analytics"
description = "Data science toolkit (numpy, pandas, requests)"
compatible_runtimes = ["python314", "python313", "python3-http"]
}

# 2. Publish an immutable layer version
resource "okustera_layer_version" "v1" {
layer_id = okustera_layer.analytics_layer.id
packages = [
"requests==2.32.3",
"numpy==2.1.0",
"pandas==2.2.2"
]
}

# 3. Deploy a Serverless Function with the attached layer
resource "okustera_function" "data_processor" {
name = "data-processor"
runtime = "python314"
handler = "handler.handle"
min_replicas = 0
max_replicas = 10
memory_limit = "512Mi"
cpu_limit = "500m"
layer_version_ids = [okustera_layer_version.v1.version]

environment_variables = {
"LOG_LEVEL" = "INFO"
"ENV" = "production"
}

source_code = <<-EOT
import numpy as np
import pandas as pd

def handle(event, context):
df = pd.DataFrame({"values": np.random.randn(5)})
return {"mean": float(df["values"].mean())}
EOT
}

output "function_url" {
value = okustera_function.data_processor.url
}

Learn more in the Terraform Resource Reference.


Live Production Demo: Webhook Data Lake​

To see an end-to-end serverless workload operating live in production: