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

589
Visualizações
How to process large data into PDF in background on Laravel

Currently, I am working on generating large data into PDF using Laravel Mpdf. This works for me at localhost by increasing maximum execution time and backtrack_limit but on the live server, it's not working. I increase these limitations but it gives me errors like 'request timeout with 500'. I told the server administrator and they suggest me to edt php.ini but still says the same error. I could not find the proper solution.

Another problem is that when generating PDF the other browsing staff are stuck until the PDF making process is finished. I searched on google and youtube but not getting a proper solution. I have also used chunking but it gives the same error.

Is there any way to do above staffs in the background by implementing laravel jobs? If yes then how to implement jobs for making pdf in background where other pages will be working fine. I know basic job implementation in laravel.

Thanks in advance.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You can use Job-Queue to process your data in background, and in the background after the queue will complete to generate your desire output show an alert or message in frontend.

here is some resource for you.

https://laravel.com/docs/9.x/queues

over 4 years ago · Santiago Trujillo Relatório
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