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

Question on best way to handle availability issue with eventhub #175

Open
kwontae opened this issue Apr 27, 2020 · 0 comments
Open

Question on best way to handle availability issue with eventhub #175

kwontae opened this issue Apr 27, 2020 · 0 comments

Comments

@kwontae
Copy link

kwontae commented Apr 27, 2020

So I have a quick question.

My team is working on a scheduler component which basically goes through the payload intake and distribute the load across all event hubs determined by the region (Payload will have an array of items that have a region as a field).
I want to be able to say if sending the batch of events have failed due to resource being down or bad name, I want to send it a different one (round robin for the sake of POC). I thought about using the azure resource health api, but I want to minimize the REST calls as much as possible as it's quite expensive. I've written a test with a random namespace that doesn't exist and instead of returning an exception/error, it panicked and exited my program. Is it possible to have a graceful method for this so I can have a handler that will apply round robin algorithm if there was an exception/error from .SendBatch()?

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

No branches or pull requests

1 participant