components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

Cron Binding - Does it have a load balancing option?

Open MotaOcimar opened this issue 2 years ago • 2 comments

I did some tests with the Cron Binding and noticed that each instance of my application in Kubernetes is triggered by that binding. However, I'm afraid this will cause multiple unnecessary actions as a result (eg multiple requests to a third application). I would like to know if it is possible to load balace the Cron Binding calls, similarly to what happens with the service invocation.

I also take the opportunity to ask if this also applies to the other Input Bindings, that is, is a trigger sent to each instance or to a single one?

MotaOcimar avatar Aug 03 '22 20:08 MotaOcimar

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Sep 02 '22 20:09 dapr-bot

Nobody? 😅

MotaOcimar avatar Sep 07 '22 14:09 MotaOcimar

@MotaOcimar This might help : https://github.com/dapr/components-contrib/issues/1249#issuecomment-959799552

sarsharma avatar Sep 23 '22 17:09 sarsharma

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Oct 23 '22 17:10 dapr-bot

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Oct 30 '22 17:10 dapr-bot

It would be nice if this was available as an option for the Dapr cron binding (or maybe an additional binding that ) as that's how the Timer trigger in Azure Functions works, and in most cases that's what's wanted. I seem to remember that Azure Functions used blob leases to achieve that, and I guess the Dapr distributed lock building block could be used to achieve a similar result.

markheath avatar Feb 17 '23 15:02 markheath