Code Monkey home page Code Monkey logo

fast-api_practice's Introduction

学完了Django和flask两个基本常用框架,在招聘需求中除了这两个框架以外,fastAPI和tornado两个异步框架也长出现,特别是fastAPI,一些讲师称其性能可以与使用go语言的性能相当,这更提起了我对这个框架的兴趣 python语言之前并发能力由于全局解释器锁(GIL锁),限制了其多核下的线程并发,这个问题随着时间的推移愈发严重,python对此问题的解决思路为用基于携程异步的方式,来实现对性能的提升,反映到web中,则是出现了像tornado这种框架,不过对异步的支持还不够完善,直到fastAPI的出现,才把携程异步的优势发挥到了极点,尤其是在当前以前后端分离为主流的市场下,API的开发异常重要,这也是其作为小而精的框架,不同于flask的特点 在pythonweb领域,使用最高的还是DRF组件,不过fastAPI也正处于上升趋势,DRF作为一个基于Django的组件,功能十分强大,并且接口文档也是十分优秀,fastAPI在接口文档上借鉴了DRF组件的接口文档,使其接口配置更加方便。想必在今后python数据接口开发的领域fastAPI能与DRF平分秋色。

fast-api_practice's People

Contributors

eiserliu avatar

Stargazers

Night-Star avatar  avatar

Watchers

 avatar

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.