Comments (2)
I think it makes sense to have this option in addition to the existing one. To be consistent with Producer
I think it would be good to mimic methods that do not fail the operation but return ErrorOrEvent[T] (defied as Either[ProducerError[T], ProducerEvent[T]])
, in particular sendStreamE
.
from zio-sqs.
I implemented the proposal and it doesn't seem to be reasonable to me any more 🙂.
Returning Either[Throwable, Message.ReadOnly]
would mean that the next request to sqs follows the failed one without giving any time to the system to recover. So in my example, the dns issue can last some seconds or minutes and the stream would be flooded with Left values. This can cause performance issues, the monitoring and logging systems will be full of errors etc.
The better approach for my desire of having an infinite stream is retiring the failed stream exponentially. The code would look like
SqsStream(???, ???)
.runDrain
.retry(Schedule.exponential(1.second) || Schedule.spaced(4.second) )
from zio-sqs.
Related Issues (19)
- Add Readme with instructions, examples, etc
- Add imports to README HOT 1
- Add tests HOT 2
- Setup CI + publish artifacts
- No way to fall back to queue's settings for visibilityTimeout and waitTimeSeconds HOT 2
- At least once semantics HOT 4
- Meta data HOT 2
- Parallel consumers from 1 queue HOT 2
- Add 2.13 build/CI HOT 8
- SqsProducer stops working after error from SQS HOT 5
- Issue with message attributes HOT 1
- Release for the latest ZConfig HOT 5
- Default value for visibilityTimeout in SqsStreamSettings should be set to None
- Upgrade to ZIO 2.0 HOT 1
- Missing symbol type for newer zio-aws versions HOT 3
- Update/cross-compile for scala 3 HOT 5
- GenericAwsError when trying to connecting to Sqs HOT 1
- Migrate tests to ZIO Test
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 zio-sqs.