Comment Comment by fwlr Cool pattern. Critics will say “falsehoods programmers believe about time” but it’s a cloud service, any time oddity that would break this would also break a lot more important stuff, so it’s fine.Ugly code though. // env QUEUES = [EVEN_QUEUE, ODD_QUEUE] // producers env.QUEUES[hour % 2].send … // consumer env.QUEUES[1 + hour % 2] parent fwlr 1 day ago
Ugly code though.