Skip to content

Commit

Permalink
Merge pull request #28 from aleph-im/feat/protobuf
Browse files Browse the repository at this point in the history
Switch serializer to ProtoBuf for performance improvements
  • Loading branch information
MHHukiewitz authored Apr 25, 2023
2 parents 6df3609 + a74c5ce commit b8f1d08
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 52 deletions.
147 changes: 97 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"typescript": "^4.8.4"
},
"dependencies": {
"luxon": "^3.0.4"
"luxon": "^3.0.4",
"protobufjs": "^7.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/framework/src/utils/moleculer/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const HEART_BEATS = 0 // 60 * 60 * 24
export const defaultBrokerConfig: BrokerOptions = {
transporter: { type: 'Fake' },
requestTimeout: 0,
serializer: 'JSON',
serializer: 'ProtoBuf',
internalServices: false,
logLevel: 'warn',
cacher: 'Memory',
Expand Down

0 comments on commit b8f1d08

Please sign in to comment.