Coder Social home page Coder Social logo

apollo's Introduction

apollo

apollo client 使用方式与实例 没有做成pip包,用的话自己复制过去.

踩坑

翻了下大部分的apollo client库,发现都是设置了守护线程去长链接拉取服务端的更新, 其他语言一般部署都是独立进程配合多线程使用的, 守护线程更新了_cache后每个线程都能生效, 但是在uwsgi配合python多进程使用时, 因为uwsgi的python服务一般是多进程配合多线程使用,这样会有很多坑需要注意, ,这里记录了大致的使用方式, 注意uwsgi.ini的配置中有两个关键的配置:

enable-threads = true   # 必须
lazy-apps = true    # 必须

参考

本项目的主要代码是引用了apollo-client-python中的实现,改了里面的一些东西,也在外侧做了浅浅的封装.

apollo's People

Contributors

aleimu avatar

Stargazers

 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.