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

238
Vistas
Prevent Timeout on Long Running Ajax Request

I have an application which sends an AJAX request to execute some server-side code. This code takes approximately 10 minutes to execute and respond with data.

Both the web server and browser timeout well before this operation completes. What is the best way to structure this request to prevent a gateway timeout?

The ajax request responds with a json object. Is this the correct structure for handling this?

Client executes ajax to start server-side processing
|
|___server working to process data (ETA 10 min)
|  |
|  server finishes and writes file with json object
|
Client recursively ajax requests some endpoint to check for completion
|
|___endpoint returns true
   |
   ajax request for server generated JSON file
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In the end I decided to use websockets. It seems like if it is a very long operation you can either generate a file and check for that file, or make a real-time app with websockets.

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