Comments (14)
Additional information.
msgpack5 is too slow, so I want to revert msgpack5 related changes.
See http://yukidarake.hateblo.jp/entry/2015/08/10/194319 (Written in Japanese)
from fluent-logger-node.
thanks for raising this topic.
How complex is to port to the new library ?
from fluent-logger-node.
It is very easy to support msgpack-1.0.2.
Just revert msgpack5 related changes in 6f2a3f6 and adjust package.json.
I have patches in my laptop and I will work for this in next week.
from fluent-logger-node.
that would be great. I'd definitely support this change.
from fluent-logger-node.
In fluent-logger-node, we use only encoding.
Could you check only pack
/encode
performance?
If msgpack5 is too slow, vote for changing to msgpack.
from fluent-logger-node.
Check performance.
https://gist.github.com/okkez/2b77b32ad3a966446347
msgpack is faster than msgpack5.
$ node benchmark.js
msgpack5: 856ms
msgpack: 29ms
from fluent-logger-node.
I see. One concern is msgpack5 has extension type support.
Does msgpack have this feature?
from fluent-logger-node.
FYI: kawanet/msgpack-lite
msgpack-lite is faster than msgpack.
msgpack-lite supports extension type.
from fluent-logger-node.
Update benchmark script and result.
https://gist.github.com/okkez/2b77b32ad3a966446347
$ node ./benchmark.js
msgpack5: 821ms
msgpack: 36ms
msgpack-lite: 23ms
from fluent-logger-node.
Does msgpack have this feature?
Maybe msgpack does not support extension type feature.
I've checked JavaScript APIs and README.md.
from fluent-logger-node.
I've created branch https://github.com/okkez/fluent-logger-node/tree/use-msgpack-lite
It is very easy to change back end library to process msgpack.
Pass all tests with msgpack-lite for now.
How about msgpack-lite for fluent-logger-node?
If we use msgpack-lite, we can support all node versions in master branch for now.
from fluent-logger-node.
👍 > msgpack-lite
from fluent-logger-node.
I've released new version 0.4.1 using msgpack-lite.
from fluent-logger-node.
😃
from fluent-logger-node.
Related Issues (20)
- Logger write to socket after it died HOT 1
- A small team looking to iterate on fluent logger node lib HOT 1
- [BUG] Logging multiple tags in PackedForward corrupts packets!
- [BUG] Emit callbacks are re-called when error with ack from Fluent
- error TS2307: Cannot find module 'winston-transport'. HOT 3
- Sender has no support in TypeScript HOT 2
- EnableReconnect not available in winston transport
- App doesn't close when connection failed. HOT 1
- WinstonTransport types don't work anymore after latest release HOT 1
- Trouble with millisecond (or any sub-second) resolution (outdated protocol implementation?)
- Buffering the logs being send to fluentd when fluentd is not available
- Error events take too much time to emit when fluentd is not available HOT 2
- Failed to call _flushSendQueue() during frequent log emit HOT 1
- Sending via udp HOT 1
- Cannot find module 'fluent-logger'
- Cannot read property 'end' of undefined HOT 2
- fluentd winston color formatting doesnt work at transport level HOT 1
- Lambda timeout occurs when using the sender.end() function with setTimeout
- [PROPOSAL] Deprecate in favor of new Fluent Node Logger HOT 1
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added to [FluentTransport]. Use emitter.setMaxListeners() to increase limit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-logger-node.