0% found this document useful (0 votes)
3 views

Priority+Queue+Pattern

Uploaded by

hamedur rahiman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Priority+Queue+Pattern

Uploaded by

hamedur rahiman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Priority Queue Pattern

What is Priority Queue Pattern?


What is Priority Queue Pattern?
 Category
 Messaging
 Performance Efficiency
What is Priority Queue Pattern?
 Category
 Messaging
 Performance Efficiency

 Prioritize requests sent to services so that requests with a higher priority are received and
processed more quickly than those with a lower priority.
What is Priority Queue Pattern?
 Category
 Messaging
 Performance Efficiency

 Prioritize requests sent to services so that requests with a higher priority are received and processed
more quickly than those with a lower priority.

 Related Patterns
What is Priority Queue Pattern?
 Category
 Messaging
 Performance Efficiency

 Prioritize requests sent to services so that requests with a higher priority are received and processed
more quickly than those with a lower priority.

 Related Patterns
 Competing Consumers Pattern
What is Priority Queue Pattern?
 Category
 Messaging
 Performance Efficiency

 Prioritize requests sent to services so that requests with a higher priority are received and processed
more quickly than those with a lower priority.

 Related Patterns
 Competing Consumers Pattern
 Throttling Pattern
Application
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Application Consumer
Consumer
Consumer
Application
Application
Application
Application
Application
Application
Application
Consumer

Application
Consumer

Consumer

Application
Consumer

Consumer

Consumer

Application
Consumer

Consumer

Consumer

Application
Consumer

Consumer

Consumer

Consumer

Application

Consumer
Consumer

Consumer

Consumer

Consumer

Application

Consumer
Consumer

Consumer

Consumer

Consumer

Application

Consumer

Consumer
Consumer

Consumer

Consumer

Consumer

Application

Consumer

Consumer
Consumer

Consumer

Consumer

Consumer

Application Application

Consumer

Consumer
Consumer

Consumer

Consumer

Consumer

Application Application

Consumer

Consumer
Consumer

Consumer

Consumer

Consumer

Application Application

Consumer

Consumer
Consumer

Consumer

Consumer

Consumer

Application Application

Consumer

Consumer
Consumer

Application Application

Consumer
Considerations
Considerations
 Priorities
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages

 In multiple queue approach; consumer must ensure that it process higher priority messages first
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages

 In multiple queue approach; consumer must ensure that it process higher priority messages first

 If lower priority messages need to be processed, you need to implement multiple pools of
consumers.
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages

 In multiple queue approach; consumer must ensure that it process higher priority messages first

 If lower priority messages need to be processed, you need to implement multiple pools of consumers.

 Monitoring
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages

 In multiple queue approach; consumer must ensure that it process higher priority messages first

 If lower priority messages need to be processed, you need to implement multiple pools of consumers.

 Monitoring

 Cost
Considerations
 Priorities

 Decide if all high priority messages must be processed before any lower priority messages

 In multiple queue approach; consumer must ensure that it process higher priority messages first

 If lower priority messages need to be processed, you need to implement multiple pools of consumers.

 Monitoring

 Cost

 Scalability
When to use this pattern?
When to use this pattern?

 The System must handle multiple tasks that have different priorities
When to use this pattern?

 The System must handle multiple tasks that have different priorities

 Different users or tenants should be served with different priority


Thank You!

You might also like