Introduction
This documentation provides a comprehensive overview of our serverless functions. These functions are designed to be lightweight, scalable, and cost-effective.
Key Concepts
- Event-Driven Architecture: Functions are triggered by events (e.g., HTTP requests, database updates, scheduled tasks).
- Stateless: Functions are designed to be stateless. Each invocation is independent.
- Pay-Per-Use: You only pay for the resources consumed during the execution of your functions.
Available Functions
`process_image`
This function automatically resizes uploaded images to various sizes and stores them in cloud storage.
// Example invocation:
// curl -X POST -F image=@/path/to/image.jpg https://api.example.com/kb/serverless-functions/process_image
// Response (JSON):
// { "width": 800, "height": 600, "url": "https://storage.example.com/resized/image.jpg" }
`send_notification`
This function sends notifications via email or SMS based on specific events.
// Example invocation:
// curl -X POST -F event_type="user_signup" -F recipient_email="user@example.com" https://api.example.com/kb/serverless-functions/send_notification
// Response (JSON):
// { "status": "success", "message": "Notification sent successfully!" }
Rate Limits
Each function has a default rate limit of 10 requests per second. You can request a higher rate limit by contacting support.
API Documentation
Detailed API documentation, including request/response schemas, is available on our API Documentation Portal.