Comments (4)
The Akka Stream model implies that only one async call will be "in-flight" at a given time, and moreover Cassandra's ResultSet is using paging to get multiple rows in one call, so I don't think there is an issue here.
from akka-stream-contrib.
@atamborrino So you are telling that since the results are paginated, the number of network calls will be less and hence not much of a problem?
from akka-stream-contrib.
Yes. The whole thing is just a trade-off between the amount of memory needed in your program and the number of IO calls to make. If you want less IO calls, increase the Cassandra statement fetch size, but you program will need more memory to buffer larger row pages.
And of course, thanks to Akka Stream's backpressure model, IO calls to Cassandra are only made when downstream (your data consumer) asks for new data, so calls to Cassandra will be dispatched over time.
from akka-stream-contrib.
@atamborrino Thanks. It clarifies my doubt.
from akka-stream-contrib.
Related Issues (20)
- Make the valve state inspection always complete
- Alternative way of defining Graph Stages HOT 3
- Release 0.9 HOT 1
- IntervalBasedRateLimiter should limit rate of messages when frequency is very high (50 000 elements per 1 000ms) failed: 4 was not equal to 3
- FileTailSource and DirectoryChanges have moved to Alpakka HOT 1
- replace scala.Either in PartitionWith Java API HOT 3
- Any interest in integrating actor into a Flow though a GraphStage? HOT 3
- Add maxNumber and maxTime to AccumulateWhileUnchanged
- Publish artifacts for scala 2.13 HOT 2
- Publishing from Travis fails
- Remove unrelated tools
- PassThroughFlow limits the rate of the inner processingFlow HOT 5
- Remove PassThroughFlow which is not superseded by FlowWithContext
- Introduce Token Throttle HOT 3
- TokenThrottle can fail to complete and doesn't consistently pre-fetch tokens
- Publish API documentation to doc.akka.io HOT 7
- Support for sorting fan-in shape with more than two upstreams
- Migrate from travis.org to travis.com HOT 1
- Shared valve switch HOT 1
- Why no more releases? 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 akka-stream-contrib.