最近做一产品,微博方面的.数据存储同时用到了DB(mysql),Cache(memcache),Redis.其实最开始架构设计的时候是准备用MongoDB的,由于学习成本太高,最终选择放弃了,采用了比较保守的方案.这款微博产品做了将近一年,涵盖了手机客户端(ios,android),web(刚上线不久),现在差不多有10多W用户,光DB的写操作也到了几十W每日,前段时间刚刚做了一个读写分离.目前感觉这套系统还比较稳定.下文主要就微博产品的一些数据存储的应用场景做个简要介绍. DB …
Session Store Configuration Session Usage Flash Data Session Drivers Configuration Since HTTP driven applications are stateless, sessions provide a way to store information about the user across requests. Nova ships with a variety of session back-end…
发现session store type使用来存放session的存储方式,目前Spring boot中只支持Redis方式. 由于本应用暂无需将session放入redis的需求,故这里就可以将session store type设置为none. 这里我们将此配置信息放入application.properites之中: # default-store in spring session. it will be set in redis only outside. spring.session…