Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

352
Vistas
When to use socket.io ? and when to use simple Http calls?

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.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

When to use sockets i.o

  • When you built real time applications, like Group chat Room, video conferencing, multiplayer games etc.
  • If you want server to push data by itself without calling from client.

when to use https

  • Simple posting data to server
  • Real time updating on client side not needed. i.e If you want CRUD you dont have to use sockets.

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.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda