Giter Club home page Giter Club logo

fastapi-web-template's Introduction

fastapi-web-template's People

Contributors

goofy-z avatar pengyuhush avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fastapi-web-template's Issues

数据缓存导致脏数据问题

问题: 在某些mysql8版面有这个问题,不知道这个问题出现的范围
接口1修改了数据,在这个请求里面取到最新数据
接口2 获得的数据不是最新修改的数据信息

接口1和接口2是连续请求的

这个可以调整缓存策略解决吗?

通过脚本测试,发现两个接口之前sleep0.1秒这个问题出现的概率就小,但是还是会出现

国际化这里有一个小问题

t = TRANSLATIONS.get(g.locale) if g.locale else TRANSLATIONS.get("en_US")

如果没有取到g.locale,else后边应该是 TRANSLATIONS.get("en-US")。

不然取不到上边配置的值,上边配置的都是中横线。

TRANSLATIONS = {
# 获取当前文件所在目录,翻译文件就在当前目录下
"zh-CN": Translations.load(os.path.split(os.path.realpath(__file__))[0], locales=["zh_CN"]),
"en-US": Translations.load(os.path.split(os.path.realpath(__file__))[0], locales=["en_US"]),
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.