Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

A Crash Course in Functions

Blog post from PubNub

Post Details
Company
Date Published
Author
Adam Bavosa
Word Count
2,786
Company Posts That Month
8
Language
English
Hacker News Points
-
Summary

PubNub offers a Publish-Subscribe API that enables the rapid transmission of small messages between internet-connected devices, with messages typically delivered in under 0.25 seconds. This network is supported by multiple global points of presence, ensuring low latency and continued operation even if data centers fail. PubNub provides over 70 SDKs for various programming languages and devices, making it suitable for real-time, event-driven applications like chat messaging, live updates, IoT signaling, and more. Developers can enhance these capabilities through PubNub Functions, which allow the execution of custom code to augment, transform, or filter messages during transmission, enabling use cases such as real-time language translation, data analytics, and secure API calls. Functions are further categorized into four event handlers—Before Publish or Fire, After Publish or Fire, After Presence, and On Request—each serving unique purposes like mutating message contents, triggering alerts, or acting as a REST API. The Functions feature includes tools for securely storing API keys, managing application state, and integrating with third-party APIs, supported by a library of over 80 open-source Function event handlers available through the PubNub BLOCKS Catalog.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 12 305 93 37 +11%
Secrets Management 10 45 11 8 +150%