Skip to content

Commit e11754d

Browse files
authored
[MySQL] BinLog Processing Queue backpressure handling (#269)
Added backpressure for the MySQL binlog listener by managing the memory footprint of the binlog processing queue. Use specified port for MySQL connections Use imported TS types from the powersync-mysql-zongji package.
1 parent cc44995 commit e11754d

File tree

13 files changed

+515
-329
lines changed

13 files changed

+515
-329
lines changed

.changeset/honest-ties-crash.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@powersync/service-module-mysql': minor
3+
---
4+
5+
Added a configurable limit for the MySQL binlog processing queue to limit memory usage.
6+
Removed MySQL Zongji type definitions, they are now instead imported from the `@powersync/mysql-zongji` package.
7+
Now passing in port for the Zongji connection, so that it can be used with MySQL servers that are not running on the default port 3306.

modules/module-mysql/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
},
3030
"dependencies": {
3131
"@powersync/lib-services-framework": "workspace:*",
32-
"@powersync/mysql-zongji": "^0.1.0",
3332
"@powersync/service-core": "workspace:*",
34-
"@powersync/service-jsonbig": "workspace:*",
3533
"@powersync/service-sync-rules": "workspace:*",
3634
"@powersync/service-types": "workspace:*",
35+
"@powersync/service-jsonbig": "workspace:*",
36+
"@powersync/mysql-zongji": "0.2.0",
3737
"async": "^3.2.4",
3838
"mysql2": "^3.11.0",
3939
"semver": "^7.5.4",

0 commit comments

Comments
 (0)