We are developing one prject with Angular2 / Node with Express and Mongo + MySql Its very large application , but doesn't require any functionality like , live notification or chat
Application has simple CRUD operations and fetching alot data , so my question is
Is it still good / have benefits to use socket.io rather then simple http calls ?
As per I understand socket.io , it make just one time connection (handshake) with server and In our case it will handshake each time I try to make api calls ?
So is there any benefits to use socket.io for normal application with CRUD operation ? It will save time ? Have any speed difference ?
Which way is better to implement ?
I have gone through the : When to use socket.io and when to use ajax
But didn't get what I want.
If have to choose b/w simple http calls and socket.io ? which one is better ? for simple CRUD operation , nothing dynamic , not needed any real time notification ? in simple case which one is better by performance , by speed ?
It would be better if have any performance chart or comparison b/w both by time/handshake/request-response.
Will someone please help me with this? Thanks in advance.
When to use sockets i.o
when to use https
Here's a comparison of the networking operations involved in sending a price change over an already open webSocket vs. making a REST call.
As you mentioned that you need any live notification and chat etc I recommend to use simple ajax as it's easy to code.
So is there any benefits to use socket.io for normal application with CRUD operation ? It will save time ? Have any speed difference ?
You can see this excellent article which compares ajax and sockets i.o.