I need to create 2 queues: 1 for calling an API that is rate limited and other for general file conversion. I want 1 queue to be slow and the other as fast as possible. This means that the queue consumer are different functions and in a team enviroment we would appreciate being able to associate a consumer function with a queue
I’m assuming you want to have one queue() handler for both these queues? Every message has a queue ID in there, maybe you can look at it to call your separate functions?
Even if I declared more than 1 handler, it is not transparent which one would be or if both would execute. Associating a handler with a specific queue or a list of queues would make this a lot easier to understand
If you compare with AWS SQS, you can see on their docs that you can specific a queue for a consumer using the QueueUrl using their SDK, not HTTP pulling.
Ah so I meant that if you have two queues, then you can have two Workers, each with a queue() handler. Worker A could be the fast queue and Worker B the slow one
As mentioned before, I'm watch to associate a handlers with a single queue. Cloudflare documentation lacks any example on how to have 1 handler per queue, this is not a HonoJs issue.