简体   繁体   中英

How to connect to web service from meteor or nodejs?

I'm designing a package (either nodejs or meteor) that connects to a web service, this web service is going to provide "live" data so I need some sort of listener or trigger event that tells me when there is new data or when some data have changed etc. is this possible or I'm just dreaming?

any hint would be very appreciated

thanks in advance

You should consider a message queue like RabbitMQ ( http://www.rabbitmq.com/ ). Then, the service your colleague is writing could send messages to a queue, and your Node.js process is listening for incoming messages.

See

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM