Module kflow_buffer

This module collects messages into a list, or concatenates lists of messages.

Copyright © 2018-2019 Klarna Bank AB (publ)

Behaviours: kflow_gen_aggregate.

Description

This module collects messages into a list, or concatenates lists of messages.

Input message format:
   Msg \ [Msg]
Output message format:
   [Msg]

Configuration

The following optional parameters can be configured:

max_messages

Type: non_neg_integer(). Buffer will be flushed when it collects this many messages. By default equals 100.

max_size

Type: non_neg_integer() | undefined. Buffer will be flushed when it collects this many bytes of data. By default this is unlimited.

Example usage

   {aggregate, kflow_buffer, #{}}

Data Types

config()

config() = #{max_messages => non_neg_integer(), max_size => non_neg_integer() | undefined}


Generated by EDoc