/protege

A Gleam library for running OTP processes with overload protection

Primary LanguageGleam

protege

NOTE This is a work in progress which has not yet been published to hex.

A Gleam library for running OTP processes with overload protection for received messages.

This was initially built to support the gleam-logger glimt, but moved to a separate repository to make it available to other projects in need of a similar mechanism.

The overload mechanism is based on the overload protection for the erlang-logger. See (Protecting the Handler from Overload) for details about the mechanism and the meaning of the different parameters.

See demo.gleam for an example on how to use the library.

Running the demo

gleam run -m demo