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

105
Visualizações
What is the best method to cache rest api requests for multiple users in a dashboard?

our company currently has multiple stores running on Woocommerce. We use the rest api to connect to each store to get updates like number of items sold on a particular day or total income etc. The problem I have is we have several users looking at this data and at the moment all the requests to each website happen every 5sec and run in JavaScript from the client. When I have 20 people looking at the “dashboard” at once that is a lot of requests to the servers.

What would be the best way to make a middle man/server than would essentially get the information and store it that my team could then connect to so they are hitting this middle server not our stores servers every 5 sec each?

Many thanks for advice.

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