NodeJS : How to debug “EventEmitter memory leak detected. 11 listeners added”

It turns out that this is a bug in nodejs core, we are talking about this problem here : https://github.com/joyent/node/issues/5108 Solution for bugged http servers thats throw an EventEmitter memory leak detected and fill up the available memory / available CPU times : Revert to legacy version v0.8.23. (You can download and install/compile it from … Read more

Delegation: EventEmitter or Observable in Angular

Update 2016-06-27: instead of using Observables, use either a BehaviorSubject, as recommended by @Abdulrahman in a comment, or a ReplaySubject, as recommended by @Jason Goemaat in a comment A Subject is both an Observable (so we can subscribe() to it) and an Observer (so we can call next() on it to emit a new value). … Read more

tech