fix: optimize event buffer (#278)

* fix: how we fetch profiles in the buffer

* perf: optimize event buffer

* remove unused file

* fix

* wip

* wip: try groupmq 2

* try simplified event buffer with duration calculation on the fly instead
This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-16 13:29:40 +01:00
committed by GitHub
parent 4736f8509d
commit 4483e464d1
46 changed files with 887 additions and 1841 deletions

20
pnpm-lock.yaml generated
View File

@@ -16,8 +16,8 @@ catalogs:
specifier: ^19.2.3
version: 19.2.3
groupmq:
specifier: 1.1.1-next.2
version: 1.1.1-next.2
specifier: 2.0.0-next.1
version: 2.0.0-next.1
react:
specifier: ^19.2.3
version: 19.2.3
@@ -198,7 +198,7 @@ importers:
version: 5.0.0
groupmq:
specifier: 'catalog:'
version: 1.1.1-next.2(ioredis@5.8.2)
version: 2.0.0-next.1(ioredis@5.8.2)
jsonwebtoken:
specifier: ^9.0.2
version: 9.0.2
@@ -936,7 +936,7 @@ importers:
version: 4.18.2
groupmq:
specifier: 'catalog:'
version: 1.1.1-next.2(ioredis@5.8.2)
version: 2.0.0-next.1(ioredis@5.8.2)
prom-client:
specifier: ^15.1.3
version: 15.1.3
@@ -1419,7 +1419,7 @@ importers:
version: 5.63.0
groupmq:
specifier: 'catalog:'
version: 1.1.1-next.2(ioredis@5.8.2)
version: 2.0.0-next.1(ioredis@5.8.2)
devDependencies:
'@openpanel/tsconfig':
specifier: workspace:*
@@ -13157,11 +13157,11 @@ packages:
glob@7.1.6:
resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
deprecated: Glob versions prior to v9 are no longer supported
glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
deprecated: Glob versions prior to v9 are no longer supported
glob@9.3.5:
resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==}
@@ -13221,8 +13221,8 @@ packages:
resolution: {integrity: sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==}
engines: {node: '>= 10.x'}
groupmq@1.1.1-next.2:
resolution: {integrity: sha512-5gH+P3NfSCjfCLcB2g2TAHCpmQz+rwrQkb+kAyrzB9puZuAHKQVYOUPWKVBRFjY7B9jPRGHrimDO6h9rWKGfMA==}
groupmq@2.0.0-next.1:
resolution: {integrity: sha512-xcpz29HeXXn0yP/sQTGPPNMLQAZCCrJg3x9kpOAFbtsXki5KVeBsY3mWNBt3Z+YCa9OxwkTFL6tOcrB67z127A==}
engines: {node: '>=18'}
peerDependencies:
ioredis: '>=5'
@@ -34142,7 +34142,7 @@ snapshots:
graphql@15.8.0: {}
groupmq@1.1.1-next.2(ioredis@5.8.2):
groupmq@2.0.0-next.1(ioredis@5.8.2):
dependencies:
cron-parser: 4.9.0
ioredis: 5.8.2