Skip to main content

Functions

PhotonIQ Functions is an edge-computing service that allows you to run your serverless applications smoothly, eliminating the need for manual infrastructure management. It leverages the distributed Global Data Mesh to ensure low-latency and high performance by deploying functions at the nearest point of presence (PoP) to users. Additionally, PhotonIQ Functions is designed to handle complex integrations with third-party services via API requests, making it a versatile solution for diverse operational requirements. It allows you to implement your system's logic using event-driven, ready-to-use blocks of code called "functions".

Key features

PhotonIQ Functions leverages the CLI tool and API to facilitate serverless applications, offering the following key features:

  • Multi-language support: PhotonQ Functions offers the flexibility to write functions in popular languages/frameworks like JavaScript, Rust and Next.js.

  • Local to regional to global auto-scaling: Automatically scales function instances based on workload demands, supporting both zero-to-N and 1-to-N scaling modes. This ensures optimal resource utilization and responsiveness to user and traffic pattern changes.

  • HTTP endpoint and static asset serving integration: Executes functions in response to HTTP requests, enabling developers to build serverless web applications and APIs. It also supports serving static files alongside functions, streamlining the deployment of comprehensive serverless applications.

  • Geo-replication: Distributes function instances across global locations to minimize response times and maximize availability.

How PhotonIQ Functions work

How it works

PhotonIQ Functions operates within a serverless architecture, designed to deploy high-performance functions in response to HTTP requests. This approach ensures that resources are consumed only when functions are triggered, optimizing efficiency. The system supports an on-demand execution model that can handle large volumes of parallel requests, all while remaining stateless between invocations.

Once functions are deployed, their information is stored in the Geo Distributed Network (GDN) database, enabling geo-replication. This ensures that functions are available from multiple locations, improving both speed and reliability for users across the globe.

When a request is made to the function, it undergoes geo-routing to find the nearest execution environment, reducing latency by selecting the most optimal node geographically. The request is then routed to the Functions API Gateway, which serves as the core entry point for managing function execution.

Within the gateway, the Function Manager Service retrieves the required code and configuration from the functions collections stored in the GDN. This guarantees the function is executed in the appropriate runtime environment—whether JavaScript, Ruby, or another supported language. After execution, the result is sent back to the requester, retracing the same efficient path through the gateway and back to the edge.

This end-to-end process—from geo-routing to execution and response—not only ensures quick function execution but also maximizes resource efficiency on a global scale. PhotonIQ Functions enables developers to create responsive, scalable applications, seamlessly managing distributed environments for high-performance, low-latency execution across the world.