Projector<S, E>: WithDescription & {
    on: {
        [K in keyof E]: ProjectorReducer<S, E, K>
    };
    schemas: ProjectorSchemas<S, E>;
}

Projectors handle events and produce a map of projection patches (driven by the cardinality of the projection). The input stream can impact the memory used to store the projected state, specially when the cardinality of the projection is high. It's recommended to filter/batch the input in such cases.

  • schemas for message validation and documentation
  • on projection handlers

Type Parameters

Type declaration

Generated using TypeDoc