Code Monkey home page Code Monkey logo

go-plc's People

Contributors

dijkstracula avatar matthias-stone avatar stellentus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

siagung shorja

go-plc's Issues

Contemplate a backpressure mechanism for Pooled

In the #29 branch, the Prioritizer will essentially blast the downstream Reader with ready-to-run operations. Pooled job, of course, is to bound concurrency, but a consequence of this is we will have a bunch of goroutines essentially queuing behind Pooled.

One way to solve this is for the Prioritizer to have a bounded concurrency level like async. That'll at least prevent an unbounded number of goroutines queuing behind the Pooled but it's not immediately obvious what the concurrency level in Prioritizer should be set to; additionally, since the go scheduler is not aware of priority levels AFAIK it could wake up any thread blocking on Pooled, leading to priority inversion.

It might be nice for Pooled to expose an EAGAIN or EWOULDBLOCK error as a backpressure mechanism. This means the Prioritizer can attempt a backoff.

By all accounts we have enough headroom given the number of priority-zero tasks that I don't expect that this will become an issue, but I'm putting this down just in case it becomes an issue and we need ideas.

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.