Overview
CloudNexus Serverless Functions let you run code without provisioning or managing servers. Deploy your functions in seconds, and we handle the infrastructure — from scaling to load balancing to security patching.
Whether you're building REST APIs, processing webhooks, handling image uploads, or running scheduled tasks, serverless functions give you the flexibility to respond to any event with minimal latency and maximum reliability.
Supported Runtimes
Write your functions in the language you love. We support all major runtimes with the latest stable versions.
Getting Started
Deploy your first serverless function in under 60 seconds. Here's a quick example:
// functions/hello.mjs export default async function handler(request) { const { name = 'World' } = await request.json(); return new Response(JSON.stringify({ message: `Hello, ${name}!`, timestamp: Date.now(), region: request.headers.get('x-cn-region') }), { headers: { 'content-type': 'application/json' } }); }
Then deploy with a single command:
# Install the CLI $ npm install -g @cloudnexus/cli # Initialize a project $ cn init my-serverless-app # Deploy to all regions $ cn deploy --production ✓ Building functions... ✓ Uploading to 50 regions... ✓ Deployed in 3.2s 🔗 https://my-serverless-app.cn.app/api/hello
Features
Everything you need to build production-grade serverless applications.
1ms Cold Starts
Our smart pre-warming and lightweight runtime containers ensure near-instant cold starts across all languages.
Multi-Region Deploy
Deploy to 50+ regions with a single command. Traffic is automatically routed to the nearest edge location.
Auto-Scaling
Scale from zero to millions of concurrent requests. No capacity planning needed — we handle it all.
Event Triggers
Trigger functions from HTTP requests, HTTP webhooks, message queues, scheduled cron jobs, or file uploads.
Security Built-In
Automatic SSL, DDoS protection, request rate limiting, and secrets management out of the box.
Real-Time Observability
Integrated logging, metrics, tracing, and alerts. Monitor every invocation in real-time from our dashboard.
Hot Reload in Dev
Local development with instant hot reload. Changes are reflected in your local function in milliseconds.
SDK & Frameworks
First-class SDKs for Node, Python, Go, and Rust. Integrations with Next.js, Express, FastAPI, and more.
How It Works
Our serverless platform uses an edge-first architecture to minimize latency and maximize reliability.
┌─────────────────────────────────────────────────────┐ │ Client Request │ └─────────────────────┬───────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────┐ │ Global Anycast DNS │ │ (Routes to nearest edge location) │ └─────────────────────┬───────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────┐ │ Edge Gateway (300+ nodes) │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ WAF │ │ Rate Lim │ │ Auth │ │ │ └──────────┘ └──────────┘ └──────────┘ │ └─────────────────────┬───────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────┐ │ Function Runtime (isolated) │ │ ┌──────────────────────────────────────────┐ │ │ │ WebAssembly / MicroVM Container │ │ │ │ ┌────────────────────────────────────┐ │ │ │ │ │ Your Code (Node/Python/etc) │ │ │ │ │ └────────────────────────────────────┘ │ │ │ └──────────────────────────────────────────┘ │ └─────────────────────┬───────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────┐ │ Integrations Layer │ │ Databases • Object Storage • Queues • Redis │ └─────────────────────────────────────────────────────┘
Request Lifecycle
1. Route: The request hits our anycast DNS and is routed to the nearest edge gateway.
2. Secure: The edge gateway applies WAF rules, rate limits, and authentication.
3. Execute: The function runs in an isolated WebAssembly or microVM container.
4. Respond: The response is cached if applicable and returned to the client.
5. Observe: Logs, metrics, and traces are streamed to your dashboard in real-time.
Comparison
See how CloudNexus compares to other serverless providers.
| Feature | CloudNexus | AWS Lambda | Vercel | Cloudflare |
|---|---|---|---|---|
| Cold Start (avg) | 1ms | 150–800ms | 100–300ms | ~1ms |
| Max Duration | 15 min | 15 min | 60s | 50ms |
| Global Regions | 50+ | 27 | 30+ | 300+ |
| WASM Support | ✓ | ✓ | ✗ | ✓ |
| Custom Domains | ✓ | ✓ | ✓ | ✓ |
| Free Tier | 1M calls/mo | 1M calls/mo | Unlimited* | 100K calls/mo |
| Per-Call Cost (100ms) | $0.0000002 | $0.00000168 | Pro plan req. | $0.0000003 |
| Local Dev Hot Reload | ✓ | ✓ (SAM) | ✓ | ✓ |
| Database Integrations | Native | Native | 3rd party | 3rd party |
Pricing
Pay only for what you use. No minimum fees, no hidden costs. Start free and scale as you grow.
$0.20 / 1M invocations
$0.03 / GB-month memory
$0.10 / 1M invocations
$0.02 / GB-month memory
Commitment level
Custom SLA & uptime
Frequently Asked Questions
A cold start occurs when a function runs for the first time after being idle. We achieve 1ms cold starts by using lightweight WebAssembly runtimes and smart pre-warming. Your function's code is pre-compiled and cached at the edge, so the first request hits an already-warmed container. For most languages, the difference between cold and warm is imperceptible.
Yes! Our SDKs are compatible with popular frameworks like Express, FastAPI, Gin, and Actix. You can often convert existing handlers with minimal changes. We also provide migration guides for AWS Lambda, Vercel, and Cloudflare Workers.
We charge based on two factors: the number of invocations and the memory-duration consumed (measured in GB-seconds). For a typical API call that takes 50ms with 256MB of memory, the cost is approximately $0.0000002. Most applications cost under $5/month on the usage-based plan.
Yes. Unlike traditional serverless platforms, CloudNexus supports WebSockets, HTTP/2, and Server-Sent Events (SSE) through our persistent connection feature. Each connection is tied to a specific edge node, maintaining state for up to 24 hours.
Your functions continue to run — we never throttle or block traffic. After exceeding your plan's included usage, you're charged at the overage rate. You'll receive email alerts at 50%, 80%, and 100% usage, plus Slack/Discord webhooks if configured.
Functions can run for up to 15 minutes on Pro and Enterprise plans. For longer tasks, we recommend breaking them into smaller functions connected via our event queue, or using our background worker feature which runs tasks asynchronously without consuming function invocations.