• Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Precios
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

61
Vistas
Are Web Workers good for parallel stream calls from server(lots of data)?

Are Web Workers good for parallel stream calls from server(lots of data)? (I use GRPC for interacting with backend)

8 months ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

Well, web workers are great but they are intented to be used for computational expensive tasks which are CPU bound, because tasks like those are the ones that can block your UI thread and ruin UX by freezing application completely until CPU bound tasks are not being resolved.

On the other side, I/O operations handled by javascript async execution are concurrent and by the nature of Event Loop they will not block UI thread because once call is stared it will be immediately offloaded from UI thread, until resolved, and like that async call will never be blocking for application UI - meaning there is really no any significant benefit if you decide to move async execution to dedicated worker thread via web workers in javascript.

8 months ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.