2 ms·
Neat! We've been doing something like this at work, and another simple solution (curious if your Google cloud infrastructure is built on something similar) is A
by mcintyre1994 8y ago
Neat! We've been doing something like this at work, and another simple solution (curious if your Google cloud infrastructure is built on something similar) is Azure Service Bus queues with a function app trigger.
Unlike AWS SQS, Azure SB queues can have items scheduled to be queued at an arbitrary time, see https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.message.scheduledenqueuetimeutc?view=azure-dotnet https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure..... SQS can only delay up to 15 minutes, so you have to implement your own hack to schedule for later than that.
And also unlike SQS, they can trigger a function so you don't have to deal with the logic to listen yourself - or even the transactional message handling, if the function fails the message is automatically re-queued.
- cgenuity 8y agoThanks! I do heavily use Google Cloud Pub/Sub but it does not support scheduling items so I only schedule items when they are due for processing.
- navinsylvester 8y agoWouldn't it be good to have your own pub/sub mechanism instead of relying on a third party like gce for a critical component. Take for example - https://github.com/grpc/grpc/issues/13327 https://github.com/grpc/grpc/issues/13327. It took them fair amount of time to fix that issue.
- ben509 8y agoInteresting... AWS leaked that subscriptions to SQS are in the works, but it's good to see that Azure has that already.
- jwilsco 8y ago> AWS leaked that subscriptions to SQS are in the works Interesting, where did you hear that?
- PretzelFisch 8y agoAws just announced "ECS Daemon Scheduling" https://aws.amazon.com/about-aws/whats-new/2018/06/amazon-ecs-adds-daemon-scheduling/ https://aws.amazon.com/about-aws/whats-new/2018/06/amazon-ec... It sounds promising.