Comments (5)
@linux019 - what library for goroutines pools are you proposing?
@zhongshixi has offered to provide a pointer to a potential solution.
@bsardo will coordinate a decision.
from prebid-server.
I had to put an RPS limit on the load balancer.
IMHO its good practice to use backpressure limiting layers in front of Prebid Server. This is the approach we use to avoid the situation described here.
I have no issue adding a goroutine limiting feature to PBS provided it doesn't add latency when unused due to either disabled (if we want to provide that option) or using a high limit value.
from prebid-server.
I think this is more about reducing the compute spent on mcall at normal usage.
Being able to deal better with traffic spikes would be a side effect.
There should be no need to add a library for this.
from prebid-server.
@bretg we don't need third party library, many of them are over complicated. There is a good implementation https://github.com/panjf2000/ants it can be taken as example
from prebid-server.
we use https://github.com/panjf2000/ants
it works very well in our system since it preallocate the resources for go routines you need. Some improvement we did
- we have different ants pool in different parts of the system to make sure not all concurrent execution compete on the same pool.
- you do not want to shoot your own foot by having strict limit on the number of go routines, you need to have a soft limit and have a capacity to allow it to grow otherwise your execution can be stuck waiting for a go routine to be available.
from prebid-server.
Related Issues (20)
- Update currency array warning HOT 1
- Support TCF Policy Version 5 HOT 3
- Port PR from PBS-Java: Criteo Bidder: Native Support
- Port PR from PBS-Java: Core: Rename module-cache to pbc-storage
- Port PR from PBS-Java: Add support for TCF Policy Version 5.
- Port PR from PBS-Java: Housekeeping: JaCoCo config cleanup
- Port PR from PBS-Java: Redefine logic regarding
- Port PR from PBS-Java: Gumgum remove video validations HOT 1
- Port PR from PBS-Java: Add multiformat support for rubicon bidder
- Port PR from PBS-Java: OpenX: populate BidderBid.videoInfo for targeting HOT 3
- Port PR from PBS-Java: Case Insensitive Check for Bidder Controls HOT 1
- Port PR from PBS-Java: Add More Seat Non Bid Codes
- Port PR from PBS-Java: Core: Fix naming for storage service
- Port PR from PBS-Java: Rubicon: Updated xapi integration
- Drop the User EID object if the all the ID values are empty HOT 2
- external_url is set to my domain , but in the responses i still see http://localhost:8000
- Prebid Server 4.0
- Define OpenRTB location for hashed identifiers HOT 5
- Port PR from PBS-Java: Rubicon: Fix currency conversion bug
- Port PR from PBS-Java: Github actions: fix github container registry workflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prebid-server.