Xano API optimization: How do I avoid unnecessary requests with 100,000 page views in Toddle?

  • luca.heck-1338457899374215190

    Luca Heck

    1 month ago

    Hello everyone! Maybe someone can help me with my question - I would be very grateful again:

    I have connected Xano and load data for my events via the API. We already have 30,000 page views per month on our current live site. We expect the new Toddle site to quickly have over 100,000 page views.

    I am now interested in how I can optimize the API requests in order to improve performance and avoid placing an unnecessary load on Xano. It would be enough for me if the events were updated once a day in the frontend. Theoretically, the API does not have to be requested with every page view... that's my amateur thinking haha

    There are a few other API requests that I would also only need to update once a day. Does it matter with the 100,000 page views because the number of views is not significant? Or are there ways to store the data “statically” in Toddle. I'm not familiar enough with this because Toddle renders on the server side.
  • andreasmoller-1338480083878543400

    Andreas Møller

    1 month ago

    You are not paying extra for API requests that happen during the first page view. So you dont have to optimise there.
  • Even if you have several API requests as part of a page load it will only count as one request towards you 30k
    ❤️1
  • esclarecido-1338489920796229724

    esclarecido

    1 month ago

    @Luca Heck in Xano you could/should use cache in your endpoints. It's a great feature to decrease the efforts of your backend.
    ❤️1
  • martinf4630-1338491444436013119

    MartinF

    1 month ago

    Wouldn't the cache then be in Xano then and not in the front-end? I imagine you still call the endpoint and it returns the cached value and doesn't querry the DB? Not a Xano expert though.

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.