Git Product home page Git Product logo

Comments (2)

thefab avatar thefab commented on June 3, 2024

You can use a single Client object by tornado worker (global var for example) or you can use a ClientPool object by tornado worker (useful only if you execute blocking commands).

But no way to share these objects between different tornado workers. And probably not useful.

from tornadis.

y-x-c avatar y-x-c commented on June 3, 2024

Hi, I would like to ask you a few questions. My server now serves for around 300 concurrent requests (timeout after 3 seconds), and I noticed that the server get query results (from a remote Redis server, ping ~ 0.5ms ) under high latency (long queue waiting for response). I have tried following ways to decrease the latency:

  1. create several Client instance, and choose a random client to send command for each query.
  2. limit the write buffer size
    after experiments, it seems like that both ways do not work, so I get really confused now : (
    Could you pls give me some suggestions or point out if I am using this library in a wrong way? Thank u!

from tornadis.

Related Issues (20)

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.