Serverless Functions

Deploy API endpoints that scale automatically

Deploy API endpoints that scale automatically without managing infrastructure. Build and deploy serverless functions with ease.

Supported Runtimes

Deploy serverless functions using popular programming languages:

🟢
Node.js
18.x, 20.x
🐍
Python
3.9, 3.10, 3.11
🦀
Rust
Latest stable
☕
Java
11, 17, 21

Function Types

Create different types of serverless functions for various use cases:

🌐HTTP Functions

  • • REST API endpoints
  • • Webhook handlers
  • • Authentication services
  • • Data processing APIs

⏰Scheduled Functions

  • • Cron job replacements
  • • Data cleanup tasks
  • • Report generation
  • • Health checks

📧Event-Driven Functions

  • • Database triggers
  • • File upload handlers
  • • Message queue processing
  • • Real-time notifications

🔄Background Functions

  • • Image processing
  • • Data transformation
  • • Email sending
  • • Third-party integrations

Automatic Scaling

Functions scale automatically based on demand:

"We migrated our API from a traditional server setup to Parslinks serverless functions. Our response times improved by 60% and costs decreased by 40% while handling 10x more traffic."
— Backend Engineer at ScaleAPI

Scaling Characteristics

Cold Start Time:< 100ms
Concurrent Executions:Unlimited
Memory Limit:Up to 10GB
Timeout:Up to 15 minutes

Development Workflow

Develop and deploy functions using familiar tools:

  1. Local Development: Use our CLI for local testing
  2. Function Creation: Define functions in your project
  3. Dependencies: Include package.json or requirements.txt
  4. Deployment: Push to Git for automatic deployment
  5. Monitoring: Track performance and logs

Example Function

Here's a simple Node.js function example:

Node.js HTTP Function

// api/users.js
export default async function handler(req, res) {
  if (req.method === 'GET') {
    // Fetch users from database
    const users = await getUsers();
    res.json({ users });
  } else if (req.method === 'POST') {
    // Create new user
    const user = await createUser(req.body);
    res.status(201).json({ user });
  } else {
    res.status(405).json({ error: 'Method not allowed' });
  }
}

Function Configuration

Configure your functions with a simple configuration file:

SettingDescriptionDefault
MemoryFunction memory allocation128MB
TimeoutMaximum execution time30 seconds
Environment VariablesRuntime configurationNone
RegionsDeployment regionsGlobal

Integration & APIs

Connect your functions with external services:

  • Database Connections: Direct integration with PostgreSQL, MySQL, MongoDB
  • Third-party APIs: HTTP client libraries for external services
  • Message Queues: Process messages from Redis, RabbitMQ
  • File Storage: Access files from S3, MinIO, or local storage
  • Authentication: Built-in JWT and OAuth support

Getting Started

  1. 1. Create a new function file in your project
  2. 2. Export a default function handler
  3. 3. Add any required dependencies
  4. 4. Push to your connected Git repository
  5. 5. Your function is automatically deployed!