Comments (4)
- read an optional parallelize: bool field in from component.json inside every action/trigger
- if this field exists, read in a number from component.json that represents the number of messages that should be read in parallel at once. This number should default to a value greater than 1 (2?) if not set. It should also be able to be configured as a config field by a user, as it would be dependent on the amount of computing power available
Or just have a single number that defaults to 1
if not present.
from sailor-nodejs.
It's a good idea to optimize the processing, however drawbacks of this approach are:
- Increase memory usage - we need to keep multiple (potentially large) messages in memory
- Decreased reliability in case of container failures - instead of potentially re-processing a single message (e.g. when container failed before rabbitmq ack.) we will have to re-process potentially multiple messages
Taking drawbacks into account I don't' think the component developer can make this decision
from sailor-nodejs.
I potentially also makes sense to allow this value to be dynamically configured at runtime based on a specific cfg
. Perhaps add a way to set this in either the init()
or startup()
functions?
from sailor-nodejs.
Increase memory usage - we need to keep multiple (potentially large) messages in memory
Currently, our platform doesn't really support messages above ~3.5 MB in side. So even if we fetched 10 messages in parallel, at most 35 MB of RAM would be consumed which is still less than the default 256 MB allocated to a component.
Decreased reliability in case of container failures - instead of potentially re-processing a single message (e.g. when container failed before rabbitmq ack.) we will have to re-process potentially multiple messages
I don't understand why the costs of doing this would be a significant concern.
from sailor-nodejs.
Related Issues (20)
- Test sailor-nodejs on popeye stage in order to check if new rabbitMQ version will not break everything
- Update Sailor Tests
- Update Sailor Dependencies
- Sailor enhancement: have this.emit() function be defined consistently for all methods called through Sailor
- Emitting errors should work, and they should be displayed on the platform
- Remove Travis CI from Sailor and set up Circle CI
- Sailor enhancement: set custom timeout length with env variable HOT 1
- updateKeys should work as intended from all functions
- Update Sailor README to include more relevant information for developers
- Wrap component trigger results into JsonObject HOT 2
- Add a Changelog to this repo
- Replace Q with native Promise
- Sailor does not reliably publish large messages HOT 5
- Preserve flow execution after 20 minutes if it do any activity HOT 4
- Passthrough step loss HOT 5
- Make sure sensitive data is not logged in components
- Sailor should be more tolerant of invalid `LOG_LEVEL` values
- Sailor should auto-rebound when it encounters an HTTP timeout in a component's process function
- Update @elastic.io/maester-client to new version to avoid vulnerability 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 sailor-nodejs.