Home ci 38. functions / configuring-functions: region

38. functions / configuring-functions: region

Last updated on Aug 05, 2025

Configuring Regions for Epycbyte Functions

Epycbyte Functions provide a robust way to manage your application's performance and reliability by leveraging its global network of servers. One key aspect of this management is the ability to configure regions, which can help optimize traffic routing and ensure business continuity.

Understanding Region Impact

  • Static Content Caching: Epycbyte automatically caches static content at various locations across the globe. This caching strategy ensures that users experience faster load times by accessing data from a server closer to their location.

  • Latency Reduction: By directing traffic through geographically closer servers, Epycbyte can significantly reduce latency, improving user experience and application performance.

Default Region Settings

  • Serverless Functions: By default, Epycbyte deploys Serverless Functions in a specific region. This default setting ensures that your functions are readily accessible to users within that region.

  • Multi-Region Deployments: For enhanced reliability, especially on Enterprise plans, you can deploy Serverless Functions across multiple regions. This allows for automatic failover in case of regional outages.

Configuring Your Regions

1. Project Settings

  • Dashboard: Navigate to your project's dashboard within the Epycbyte console. Here, you'll find options to set up default regions and enable automatic failover.

  • Region Selection: Use the dropdown menus or search bar to select specific regions for your functions.

2. Configuration Files

  • epycbyte.json: This file allows for more advanced configurations. You can specify multiple regions in the regions array:

    {
      "regions": ["sfo1", "lhr1", "sin1"]
    }
    
  • functionFailoverRegions: For Enterprise users, you can enable failover to specific regions by adding them to this property:

    {
      "functionFailoverRegions": ["dub1", "fra1"]
    }
    

3. Command Line Interface (CLI)

  • epycbyte CLI: Use the --regions command to set regions for your project. This is particularly useful for updating configurations without accessing the dashboard.

Automatic Failover

Epycbyte's automatic failover mechanism ensures that if a region goes offline, traffic is rerouted to the nearest available region. This feature is enabled by default and works seamlessly across all plans.

Node.js Runtime

  • Enterprise Plans: Multi-region redundancy and automatic failover are supported for Node.js runtime on Enterprise plans. You can enable this in your project settings.

Edge Runtime

  • Global Network: Epycbyte's Edge Network ensures that traffic is automatically rerouted to the closest available region during outages, providing continuous service availability.

Conclusion

Configuring regions for Epycbyte Functions is a vital step in optimizing performance and ensuring business continuity. By leveraging default settings and advanced configurations, you can tailor your functions' deployment to meet specific needs while relying on Epycbyte's robust network for automatic failover and traffic management.