Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive events from tarantool #22

Open
00christian00 opened this issue Nov 10, 2016 · 4 comments
Open

Receive events from tarantool #22

00christian00 opened this issue Nov 10, 2016 · 4 comments

Comments

@00christian00
Copy link

Hi,
Thanks for your work!
Is there any way to send an event from tarantool to node js?
In the example the request is always initiated from node js but this limits a lot the interaction the 2 tools can have.

@KlonD90
Copy link
Contributor

KlonD90 commented Nov 11, 2016

Hi.
This driver use iproto and this protocol work only in way like request - response.

You can send http query from tarantool by lua to nodeJS server and handle it.

What's your purpose? If something like a tasks you can use https://github.com/tarantool/queue and do polling after some time interval. (I use this way in my project).

@00christian00
Copy link
Author

Hi,
I am developing a f2p game and just recently hit a wall with my current db , couchbase, for the leaderboard for whose doesn't seem to be suited.
I just found out Tarantool and was fascinated by the fact that you can actually interact with the db at low level.
Some possible scenarios where this could be useful would be:
-Replication. I could setup servers in two remote location and sync them with master-master replication.
Then I would setup a trigger and would like to be able to notify node js of it.
By the way can you get the tuple on trigger? The docs doesn't mention it.
-Message system to talk between all server in the cluster, both node and tarantool.

Of course there are many workaround possible, but it would be nice if it would be possible natively.
If the protocol doesn't allow it, I'll have to ask the devs then.

@KlonD90
Copy link
Contributor

KlonD90 commented Nov 13, 2016

By the way can you get the tuple on trigger? The docs doesn't mention it.
No.

Protocol doesn't work in pub/sub mode in current version. You can do a polling only and on tarantool side send an answer on trigger.

@GreatGreatGreg
Copy link

Hi, any plan to implement tarantool queue in Node.js just like go-tarantool and python do? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants