Comments (2)
Unfortunately using Go code this isn't possible due to the Go Memory Model. The only solution would be to write processor-specific assembly code that creates the appropriate write/read memory barriers.
Further, now that Go has generics, it would be easier to hold the RingBuffer[T]
inside of the Disruptor.
Again, this is not anywhere close to being ready for production.
from go-disruptor.
Unfortunately using Go code this isn't possible due to the Go Memory Model. The only solution would be to write processor-specific assembly code that creates the appropriate write/read memory barriers.
Hi @joliver , I would like to know the reason why this component can't be used in the production environment.
Is it because the go-mem-model limits the implementation of multiple producers?
Or is there just a possible problem with the current version(single-producer : multi-consumer)?
from go-disruptor.
Related Issues (11)
- multiProducers and multiConsumers HOT 1
- consume process hung HOT 5
- ringBuffer visibility discuss
- It seem the test is hangup HOT 1
- Is this repo active ? HOT 2
- About 'SharedWriter.Reserve' parameter 'count' HOT 1
- Eliminate race condition in the AMD64 cursor HOT 8
- reader.go has sleep HOT 1
- Why allocate new local var(lower,upper) inside loop instead of allocate outside that.
- Is go-disruptor support many producer? HOT 2
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 go-disruptor.