Coder Social home page Coder Social logo

baslr / arangochair Goto Github PK

View Code? Open in Web Editor NEW
91.0 11.0 18.0 10 KB

๐Ÿฅ‘ arangochair is a Node.js module that adds changefeed capability to ArangoDB and make it realtime push ready

JavaScript 100.00%
arangodb realtime push changefeed subscribe arangochair

arangochair's People

Contributors

baslr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arangochair's Issues

Differenciate insert and update events

Hello,

We're currently using arangochair (@voondo 's fork in fact, because of authentication issues) and are rather happy with it !
Nevertheless, it would be great to be able to subscribe to insert and update events separately.

This page says that "Separate events for insert and update are currently not possible but will be part of a future update."

Any roadmap for this please ?

Thanks

TypeError: Cannot read property 'add' of undefined

We are using the latest arangodb version (official docker image for arangodb) and we are getting following error:

This is simple info taken from arangodb dashboards:

screen shot 2019-01-08 at 2 46 02 pm

Currently listening #0 subscribers
/notification-api/node_modules/arangochair/index.js:152
                                txns.get(tid).add([type,entry.slice(idx0+14)]);
                                             ^

TypeError: Cannot read property 'add' of undefined
    at req.get (/notification-api/node_modules/arangochair/index.js:152:46)
    at HttpRequest.handleResponse (/notification-api/node_modules/request-easy/request.js:172:9)
    at rawRequest (/notification-api/node_modules/request-easy/request.js:100:16)
    at IncomingMessage.res.on (/notification-api/node_modules/request-easy/rawRequest.js:87:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Keys not filtering

For anyone trying to use the library.

I was trying to use the keys filter, this initially didn't return any value.

Dug a little and discovers on line 96:

if (0 !== keys.size && !events.has(key)) return;

Should be:

if (0 !== keys.size && !keys.has(key)) return;

Running ArangoChair inside foxx script

@baslr ,
I tried to use ArangoChair inside Arangodb 3.1.21, but later I realised that Arangodb has not implemented http and https node modules. It will be great if you can make this compatible with Arangodb foxx.

Thanks & Regards,
Sajeev Ramakrishnan

Performance Issues

Have you noticed any performance problems with ArangoDB while running this? I'm seeing the CPU utilization of ArangoDB running a fairly consistent 30% CPU when running and the HD seems very active. This isn't necessarily a bug of this project, but wanted to verify that others are seeing this happen as well.

Contributions?

Do you want help, and in that case have you considered creating a roadmap, documenting how to contribute, adding eslint, unit tests and such?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.