Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead letter queue support #96

Merged

Conversation

elindanielsson
Copy link
Contributor

  • Added support for a dead letter queue error filter
  • Added support for prefixed temporary queues

@Kralizek
Copy link
Member

Oh wow, that came unexpected 🤔

@elindanielsson
Copy link
Contributor Author

Oh wow, that came unexpected 🤔

Haha, yeah, it's functionality that exists in Nybus V0, that we realized was missing in V1, but would be nice to have

@Kralizek
Copy link
Member

Next time better open an issue first so that I can be involved from the beginning :)

@elindanielsson
Copy link
Contributor Author

Next time better open an issue first so that I can be involved from the beginning :)

Yes, will do

@@ -128,6 +128,11 @@ public Task NotifyFailAsync(Message message)

public bool IsTypeAccepted(Type type) => _acceptedTypes.Contains(type);

public Task SendMessageToErrorQueueAsync(Message message)
{
return Task.CompletedTask;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try sketch an implementation for this as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any suggestion on how best to do that? Do we create a another ISubject<Envelope> for the error messages? Or do you have a better idea?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's take a step back. how users are expected to interact with the DLQ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would guess in most cases, that would be handled by a different application then, and from the perspective of that application, it would be considered a "normal" queue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhm... seems correct. Let me sit a bit on this one and see if there is a clean way to implement local DLQ for the in-memory provider.

Fix for DLQ error filter test
Copy link
Member

@Kralizek Kralizek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far so good :)

Copy link
Member

@Kralizek Kralizek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elindanielsson ready for merging?

@elindanielsson
Copy link
Contributor Author

@elindanielsson ready for merging?

Yes @Kralizek , it's ready from my pov

@Kralizek Kralizek merged commit acdc486 into Nybus-project:master Jan 20, 2022
@elindanielsson elindanielsson deleted the dead_letter_queue_support branch September 16, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants