Functions: Serverless Computation at Scale
Blog post from PubNub
PubNub Functions is a new serverless computing solution that allows real-time data processing and execution of business logic at scale without relying on user-owned servers, thereby minimizing latency and potential points of failure. This feature enhances the PubNub Data Stream Network (DSN) by enabling developers to create event handlers in JavaScript, which can perform computations, log messages, update data, or interact with external web services directly within the network. By doing so, Functions eliminates the need for roundabout data processing methods that traditionally increased latency and infrastructure complexity. This capability simplifies application development, such as creating a voting app, by allowing users to focus on the core functionality rather than infrastructure management. Functions are easily set up through the PubNub dashboard, where developers can initiate blocks of code that run across the network simultaneously, ensuring secure, reliable, and low-latency computation.