data_publisher(3)
π data_publisher(3) β Erlang Module Definition π
okay so bestie, welcome to the manual page for data_publisher(3). it's giving distributed systems realness, and we're gonna understand it together. no cap. π«Ά
β¨ NAME β¨
data_publisher β a behavior for building eventually consistent, replicated data stores across distributed nodes. periodt. π
πΈ DESCRIPTION πΈ
This module provides the infrastructure for, and I quote, these four iconic things:
- Replicating data across all nodes running the same
scopeπ« - Automatic peer discovery, like it just finds its besties on its own π¦
- Subscription-based notifications for data changes β yes, you get pinged π
- Version translation for rolling upgrades, so upgrades can be smooth like butter π§
The modules that implement this behavior define how data is stored, updated, and how changes are calculated and propagated. It's a generalization of the pg module. so if you know pg, you know the vibe, fr fr. π₯
π DATA TYPES π
here's the type tea, bestie, every single one exactly as it is:
global_view() :: dynamic().local_data() :: dynamic().options() :: #{standalone => boolean(), dynamic() => dynamic()}.scope() :: atom().state() :: #state{}.subscribe_result() :: dynamic().subscription() :: dynamic().subscriptions() :: #{subscription() => #{reference() => pid()}}.update() :: dynamic().version() :: dynamic().
π«Ά FUNCTIONS π«Ά
no functions listed here, bestie. it's giving mysterious main character energy. π
π CALLBACKS π
same story β no callbacks listed on this page. the plot thickens. π
okay that's the whole vibe. brought to you by Ericsson AB, kernel 11.0.3, and data_publisher(3). stay iconic, bestie. πβ¨π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms