gavin1995 / dms Goto Github PK
View Code? Open in Web Editor NEW基于Json Schema的动态Json数据配置平台
License: MIT License
基于Json Schema的动态Json数据配置平台
License: MIT License
老哥,/app/util/ 这个文件夹是不是没有提交来着
个人认为单独的数据缓存使用redis是不行的,就像您说的那样如果数据量比较大,redis集群有限的话,就会导致数据库压力比较大,之前我也有写过类似的静态配置平台,也出现相同问题并考虑过数据的缓存方案,总结了一点,可以把数据缓存分类型,分等级去做,可以将数据类型分为多种,界面上可以选择,比如数据量大小,数据请求量是否频繁,如果数据量比较大,并且不频繁就不适合redis, 缓存策略,比如返回304状态,比如做CDN,比如将数据JSON静态化存储,如果数据量小的话存redis没问题,但是要配置适当的缓存时间,还要区分数据是否频繁,是否经常不变动的数据,就可使用浏览器缓存,redis也可以不存储数据,存储数据更新时间,校验数据数据时间返回304状态,还可以做多级换存策略,先判断是否是缓存时间不变返回304,二级是redis数据缓存,如果时间改变redis获取,如果resis没有,json静态获取,如果再没有就数据库读取,但是都需要做数据的区分,数据量大小,数据的频繁性,最好是单个数据可以界面单独配置缓存策略,重点是数据改变一定要清楚缓存,这个只是我个人见解
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.