Epycbyte Functions
Epycbyte Functions enable running compute on-demand without needing to manage your own infrastructure, provision servers, or upgrade hardware. These serverless functions scale automatically with user demand and can interact with APIs, databases, and other resources as part of your project's deployment.
Edge Network Epycbyte Functions Quickstart Concepts
Choosing a Runtime
The infrastructure and abilities of your Epycbyte Function are determined by the runtime you choose:
- Node.js runtime: Provides access to Node.js APIs for web development with resource configuration options.
- Edge runtime (Edge Functions): Executes code at the edge, close to the user, using a limited set of Node.js APIs.
- Python runtime: Allows Python functions, including Django and Flask integration.
- Go runtime: Exposes a single HTTP handler from a .go file in an /api directory.
- Ruby runtime: Exposes a single HTTP handler from a .rb file in an /api directory.
Functions API Reference
Epycbyte Functions support streaming, error handling, logging, and more. They can be configured with specific runtimes, memory limits, and regions to optimize performance.
Getting Started
Example Function
Here’s an example of a basic Epycbyte function:
export async function handler(req, res) {
// Implement your logic here
}
This function can handle HTTP requests and respond appropriately. You can customize it based on your specific needs.
Configuring Functions
You can configure functions by specifying the runtime, memory limits, and region in your deployment settings.
Limits
Epycbyte Functions have certain limitations to ensure optimal performance:
- Memory limits: Ensure your function does not exceed memory constraints.
- Execution time: Functions must complete within specified time limits.
Logging
Epycbyte provides detailed logging for functions, allowing you to monitor performance and debug issues. Logs are accessible through the Epycbyte dashboard or API.