Skip to content

Commit b8f1d08

Browse files
authored
Merge pull request #28 from aleph-im/feat/protobuf
Switch serializer to ProtoBuf for performance improvements
2 parents 6df3609 + a74c5ce commit b8f1d08

File tree

3 files changed

+100
-52
lines changed

3 files changed

+100
-52
lines changed

package-lock.json

Lines changed: 97 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"typescript": "^4.8.4"
6161
},
6262
"dependencies": {
63-
"luxon": "^3.0.4"
63+
"luxon": "^3.0.4",
64+
"protobufjs": "^7.2.2"
6465
}
6566
}

packages/framework/src/utils/moleculer/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const HEART_BEATS = 0 // 60 * 60 * 24
2929
export const defaultBrokerConfig: BrokerOptions = {
3030
transporter: { type: 'Fake' },
3131
requestTimeout: 0,
32-
serializer: 'JSON',
32+
serializer: 'ProtoBuf',
3333
internalServices: false,
3434
logLevel: 'warn',
3535
cacher: 'Memory',

0 commit comments

Comments
 (0)