Comments (5)
@rtkkroland: Not really. Just that the switch
output requires that you to know the URLs when writing the config while interpolation allows you to extract the URL from each message at runtime. Benthos still has to extract some field from the message in each switch
case to figure out which output to route the message to, so that will incur a similar performance penalty.
from benthos.
Looking to do something like this in the url field where route is added to metadata by a previous processor and can be one of up to 20 values.
output:
aws_sqs:
url: 'https://sqs.us-west-2.amazonaws.com/AWS_ACCOUNT/${! meta("route") }'
max_in_flight: 64
from benthos.
Hey, this is technically possible as we can specify the URL per batch send request. However, one minor annoyance is that when you batch messages up (which is recommended for performance reasons) each individual message could yield a different URL, and so the logic and predictability of batch dispatching becomes much more complicated.
from benthos.
Would having URL determined per message be worse/better performance than using the switch
output?
from benthos.
Awesome, let's do URL interpolation then! :D
- Similar performance
- Run-time configurable
from benthos.
Related Issues (20)
- Protobuf processor options: EmitUnpopulated & EmitDefaultValutes
- Implement BatchInput instead of Input for nats_jetstream
- Download of zip file fails HOT 1
- parse_form_url_encoded returns unknown type when query contains diplicated fields HOT 1
- GCP cloud storage output error with Failed to delete temporary file used for merging: context canceled HOT 11
- Output resources connects even if unused
- `schema_registry_encode` truncation of input json before encode HOT 1
- `http` processors send body on `GET` HOT 3
- Cache Memory only works with numbers HOT 2
- Support for the Fission serverless framework HOT 3
- Unable to use Protobuf primitive wrapper types HOT 2
- Add additional field "max_retries" for retry processor
- Adding an `array` method to bloblang HOT 1
- WriteBatch Method in BatchOutput Interface Does Not Return Errors Anymore HOT 6
- how to use sql_select or sql_raw HOT 1
- MongoDB regression: ISODate fields get persisted as strings
- Mappings caveat or hidded beahaviour or bug with complex json HOT 1
- Incorrect default Redis port when creating configuration HOT 2
- http over amqp_0_9 proxy HOT 1
- sql_insert ORA-01483 HOT 8
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 benthos.