简体   繁体   English

React/Nextjs 应用程序中的全局存储

[英]Global storage in React/Nextjs application

I have an application that fetches data, but due to limits on the server, I cannot make infinite requests (429 error).我有一个获取数据的应用程序,但由于服务器的限制,我无法发出无限请求(429 错误)。

Therefore I want to fetch data every night and store it in a global storage for all users to use so that the application seems faster and we do not get "too many requests".因此,我想每晚获取数据并将其存储在全局存储中供所有用户使用,以便应用程序看起来更快并且我们不会收到“太多请求”。

I was thinking about Redis, but was thinking NextJs might have something similar.我在考虑 Redis,但在想 NextJs 可能有类似的东西。 Any suggestions?有什么建议么?

it's depand on number of data, the best practice is to use redis the fastest way它取决于数据的数量,最佳做法是使用 redis 最快的方式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM