How much load does site auto-reload on the server?

Asked 1 years ago, Updated 1 years ago, 389 views

I am thinking of automatically reloading the main screen with JavaScript once every 10 minutes on a site created by JavaEE.
In that case, I think it will put a load on the server like the F5 attack.I am using heroku.
Please let me know if there is any way to reduce or avoid the load.

<script>
    setTimeout(function(){
        window.location.href='/Main Screen';
    }, 600 * 1000);
</script>

javascript java-ee

2023-02-25 07:22

1 Answers

It seems that the server side is also within the scope of the questioner's defense, but if so, why don't you consider caching on the server side?

For example, if you are providing DB data to clients, you can cache DB data and rewrite the cache with new data when DB data is updated.

I don't know how I can do it on the JavaEE site, so I'm sorry if it's a mistake.


2023-02-25 07:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.