Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

88
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda