CrowdControl.Store.ETS (crowd_control v0.1.1)

Copy Markdown View Source

In-memory CrowdControl.Store. The default.

A named public table owned by this GenServer, so reads and writes go straight to ETS from the session process with no serialization through a single mailbox — Session writes on every stdout chunk, and funnelling that through one process would make the store the bottleneck for every session at once.

Survives a session crash: the sandbox stays labelled, the record stays in the table, and CrowdControl.Reaper can reattach. Does not survive a node restart — the table dies with the VM. Use CrowdControl.Store.DETS for that.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.