O'Reilly logo

Implementing Cloud Design Patterns for AWS by Marcus Young

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Priority queue pattern

The previous queuing chain pattern is a great example of how to begin working with independent systems in a complex setup. Using the same example, we can show how to give priority to queues using third-party tools. Imagine a system where the workers might have multiple queues to work from. You can scale the worker systems independently by dedicating some instances to one queue and some instances to the other.

However, the problem in doing so is that you will have duplicate logic across both sets of instances. Using the previous example, all workers would still solve the problem with the same fibonacci algorithm but we will have to manage two sets of instances. Instead, the better route would be to assign a weight to the queues ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required