Comments (2)
Hi @jandillmann
I think 503 is a good indication of temporary error, we could even consider it a bug if retry is not done for this error code.
In general, one should never retry 500, however I agree that we should probably add an option like "Always Retry (N times)".
i.e. retry attempts counter should not exceed N.
In stream/event sourcing, a so called poison-pill message is very common to happen, which typically means such a message may cause server to raise an exception or even crash.
When there are multiple consumers (http servers in case of HTTP sink) behind a load-balancer (or gateway), without a limit, the retries of a poison-pill message may eventually bring down all the consumers.
from emqx.
Yes, I agree, 500s should not be retried indefinitely. But a configurable small number of retries might be ok for my use case – it is usually only once per day or even less that a request does not go through. Retrying 429 and 503 sounds like a reasonable choice for me, too.
As for KrakenD returning a 500 instead of a more suitable 503 (or have it configurable), I will create an issue there.
from emqx.
Related Issues (20)
- Rest API, fields param not work HOT 3
- Migrate from mosquitto-go-auth to EMQX-auth-pgsql HOT 6
- [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure HOT 2
- Error:Mysql Connector Test Connectivity Error HOT 5
- When EMQX updates the load balancer, it resets the Connection Idle Timeout to the default value. HOT 2
- connection congested: HOT 2
- Then enter in "Retained Messages" got 500 Internal Error HOT 5
- peer_cert_as_username when using proxy protocol v2 HOT 1
- Unable to force-leave stale nodes HOT 12
- Enhanced Authentication Failed with Reason Code 135 (Not Authorized). HOT 9
- Configuration fails to take effect about TCP Keep Alive behavior HOT 6
- Grafana dashboard should use $__rate_interval HOT 3
- Can not view retained messages in admin dashboard after updating to 5.6.0 from 5.5.1 HOT 7
- 使用 MongoDB4.0 进行密码认证,无法成功接入数据源。 HOT 6
- Can't add users on touch screen device HOT 7
- Action output to external HTTP server - authorization header issue HOT 2
- The client disconnects after publish message whose topic starts with '$' HOT 2
- Not getting Emqx dashboard HOT 1
- EMQX Clustering - Message Replication HOT 4
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 emqx.