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

Can NodeJS be usef for push messaging? #9

Closed
kulinchoksi opened this issue Sep 27, 2015 · 4 comments
Closed

Can NodeJS be usef for push messaging? #9

kulinchoksi opened this issue Sep 27, 2015 · 4 comments

Comments

@kulinchoksi
Copy link

I don't have used Node JS neither any push messaging platform but have read about both and have some problems which could be solved by mechanism like push messaging.
I'm not sure this is right place to ask such question but found that I can ask question related to Node JS here.
We need to import large data from one application to some other applications frequently (want to do it real time in best scenario) hosted by our own (for now) servers.
Instead of importing data with pull mechanism I think, push mechanism would be better and I came across Node JS and had a thought that whether can be used for push mechanism in such scenarios or not.
In most of the Node JS examples, I saw it used to connect back end service with front end like browser but in my case, I'm thinking to use it to connect both ends in server side only like one service communicating to other in back end (without knowing to front end like browser).

I need to know point of view of people who have experience with such problems and also with Node JS.

Thanks.

@yosuke-furukawa
Copy link
Member

I need more information.
How large is your data? and what type is your data ex. image/video/json??

Node.js is suitable push mechanism like Server sent events/websocket bidirectional data transportation.
And Node.js can detect file changes easily. if some files are changed, Node.js can push those changes to other applications.

@kulinchoksi
Copy link
Author

Thanks Yosuke for reply.

Data is related to products/articles.
Can have around 50k Json objects (approx 20-25 MB) for article updates.

Stock update is in CSV file - size approx 190KB

Price update API gives around 50k json objects.


I need more information.
How large is your data? and what type is your data ex. image/video/json??

Node.js is suitable push mechanism like Server sent events/websocket
bidirectional data transportation.
And Node.js can detect file changes easily. if some files are changed,
Node.js can push those changes to other applications.


Reply to this email directly or view it on
#9 (comment)
#9 (comment).

@yosuke-furukawa
Copy link
Member

@kulinchoksi
It seems to be a little bit heavy. Node.js can be handle JSON object, but JSON.parse is sync API.
IF you need to handle lots of push notifications, you need to use JSONStream instead of native JSON.

I know some cases to create push architecture by Node.js. Every cases consider to avoid sync API and avoid stop EventLoop.

If you try and you get some problems, feel free to ask those problems in here.

@Knighton910
Copy link
Contributor

closing for now, reopen to pursue further

happy coding ✅

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