Skip to content

inngest/expr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ef1dab5 · May 21, 2025

History

82 Commits
May 21, 2025
Apr 29, 2025
Apr 26, 2024
May 15, 2024
Oct 23, 2024
Feb 2, 2024
Jan 9, 2024
Jan 9, 2024
Apr 30, 2025
Apr 30, 2025
May 21, 2025
Apr 30, 2025
May 21, 2025
Apr 30, 2025
Feb 1, 2024
May 21, 2025
May 21, 2025
Sep 27, 2024
Sep 27, 2024
May 21, 2025
Apr 29, 2025
Nov 7, 2024
Nov 7, 2024
May 21, 2025
Apr 23, 2025
Apr 23, 2025
May 21, 2025
Nov 7, 2024
Apr 26, 2024
Nov 6, 2024

Repository files navigation

Aggregate expression engines

This repo contains Inngest's aggregate expression engine service, turning O(n^2) expression matching into O(n).

It does this by:

  1. Parsing each expression whilst lifting literals out of expressions
  2. Breaking expressions down into subgroups (matching && comparators)
  3. Storing each group's comparator in a matching engine for fast lookups

When an event is received, instead of matching the event against every expression, we instead inspect each matching engine to filter out invalid expressions. This leaves us with a subset of expressions that are almost always matching for the event, simplifying the number of expressions to match against.

Copyright Inngest 2024.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages