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

91
Vistas
Run long request to thirds parry on firebase cloud functions / cloud run and immediate response without waiting

I have a simple function

   const y = await goToFirestore;
    const x =await axios.post('third-party',{}). // this could take 10-20 seconds
    const v =  const x =await axios.post('third-party/another',{}).  // this could take another 10-20 seconds. but this has to wait to the previous one

    return x;

my question is . in this situation i have only 5 instance up and running (max)

means i can handle only 5 multiple requests what will happen if i will have 20 multiple requests . this means they will wait ??

firebase run instance per request ? there is no support of multiple request?

how can I change the logic

is it possible to return immidiate res.end() to the client (another http app) and give the code run in the background with pub/sub or smth ?

how it will affect in case of lot of requests ? the pub-sub will wait ?

is that means that firebase cloud functions does not fit my needed ?

is cqrs could be a good option for this ?

about 4 years ago · Juan Pablo Isaza
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