Tag

Priority Queue

1 views collected around this technical thread.

IT Services Circle
IT Services Circle
May 4, 2025 · Fundamentals

LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue

The article first discusses how many large companies now filter candidates by strict academic degree requirements, then presents LeetCode problem 407 (Trapping Rain Water II) and provides a detailed Dijkstra‑variant solution using a min‑heap, including full Java and C++ implementations and complexity analysis.

C++DijkstraJava
0 likes · 10 min read
LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 30, 2023 · Backend Development

Mastering RabbitMQ Delayed and Priority Queues with Spring Boot

This guide explains how to implement delayed and priority queues in RabbitMQ 3.8 using Spring Boot 2.6, covering dead‑letter exchange configuration, message expiration, priority settings, code examples for sending and consuming messages, and practical considerations such as priority limits and ordering behavior.

Delayed QueueJavaMessage Queue
0 likes · 8 min read
Mastering RabbitMQ Delayed and Priority Queues with Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 8, 2023 · Backend Development

How to Implement Delayed and Priority Queues in Spring Boot with RabbitMQ

This tutorial explains how to create delayed and priority queues in RabbitMQ using Spring Boot, covering dead‑letter queue configuration, TTL settings, priority parameters, and provides complete Java code examples for sending and consuming prioritized messages.

Delayed QueueJavaMessage Queue
0 likes · 6 min read
How to Implement Delayed and Priority Queues in Spring Boot with RabbitMQ
JD Tech
JD Tech
Feb 23, 2023 · Backend Development

Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions

This article provides an in‑depth overview of scheduled task processing, covering common business scenarios, fundamental principles, single‑machine algorithms such as min‑heap and time‑wheel, Java utilities like Timer, DelayQueue, ScheduledExecutorService, Spring Task, Quartz, and distributed approaches using Redis, Elastic‑Job, and XXL‑Job.

JavaPriority QueueSpring
0 likes · 22 min read
Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions
Laravel Tech Community
Laravel Tech Community
Aug 23, 2022 · Backend Development

Implementing Priority Queues with RabbitMQ in PHP

This article explains how to configure RabbitMQ queue priority, defines reusable PHP base, service, and client classes, and demonstrates running the code to send and consume prioritized messages using the PhpAmqpLib library.

Message QueuePHPPriority Queue
0 likes · 3 min read
Implementing Priority Queues with RabbitMQ in PHP
IT Architects Alliance
IT Architects Alliance
Jun 13, 2022 · Backend Development

Understanding Message Queues (MQ): Concepts, Benefits, Common Implementations, and Advanced RabbitMQ Features

This article explains what a Message Queue (MQ) is, why it is used for traffic shaping, system decoupling, and asynchronous processing, reviews popular MQ products such as Kafka, ActiveMQ, RocketMQ and RabbitMQ, and details RabbitMQ's core concepts and advanced features like dead‑letter, delayed, idempotent, priority, and lazy queues.

Dead Letter QueueKafkaMessage Queue
0 likes · 13 min read
Understanding Message Queues (MQ): Concepts, Benefits, Common Implementations, and Advanced RabbitMQ Features
Laravel Tech Community
Laravel Tech Community
Feb 14, 2022 · Databases

Why LIMIT with ORDER BY Can Produce Duplicate Pages in MySQL and How to Resolve It

The article explains why using LIMIT together with ORDER BY in MySQL 5.6 can cause duplicate records on subsequent pages, analyzes the priority‑queue optimization that makes the sort unstable, and offers practical solutions such as indexing, proper pagination logic, and query adjustments.

MySQLORDER BYPriority Queue
0 likes · 8 min read
Why LIMIT with ORDER BY Can Produce Duplicate Pages in MySQL and How to Resolve It
DeWu Technology
DeWu Technology
Jun 12, 2021 · Backend Development

Design and Optimization of a High‑Throughput Messaging Platform

To handle exploding daily traffic, the team rebuilt the messaging platform with a unified API, concurrent consumption, MongoDB storage, and a priority scheme that uses separate Kafka topics and adjustable pull ratios, while employing a state‑machine‑driven thread pool, multi‑tier delay mechanisms, and MongoDB/Redis‑based fatigue control, delivering fast, traceable, hierarchical urgent delivery with visual metrics and content safety.

Delay QueueKafkaMessaging
0 likes · 5 min read
Design and Optimization of a High‑Throughput Messaging Platform
Top Architect
Top Architect
Apr 3, 2021 · Databases

Understanding and Solving Duplicate Records When Using ORDER BY with LIMIT in MySQL

This article explains why MySQL 5.6 may return duplicate rows on the second page when using ORDER BY with LIMIT, analyzes the optimizer’s priority‑queue behavior, and provides practical solutions such as indexing, proper pagination understanding, and handling of sorting edge cases.

IndexingMySQLORDER BY
0 likes · 7 min read
Understanding and Solving Duplicate Records When Using ORDER BY with LIMIT in MySQL
政采云技术
政采云技术
Jan 12, 2021 · Fundamentals

Understanding Priority Queues and Binary Heaps with React Source Code

This article explains the concept of priority queues, compares various implementations including binary heaps, demonstrates insertion and deletion operations with detailed code examples from React's SchedulerMinHeap, and discusses extensions to d‑ary heaps for performance‑critical scenarios.

Binary HeapData StructuresPriority Queue
0 likes · 15 min read
Understanding Priority Queues and Binary Heaps with React Source Code
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2020 · Fundamentals

Implementing a Priority Queue in Python Using heapq

This article explains how to implement a priority queue in Python using the built‑in heapq module, demonstrates extracting smallest and largest elements from price lists, and provides a full PriorityQueue class with push, pop, and is_empty methods, illustrated with stock portfolio examples.

Priority QueuePythonalgorithm
0 likes · 6 min read
Implementing a Priority Queue in Python Using heapq
Sohu Tech Products
Sohu Tech Products
Apr 15, 2020 · Fundamentals

Comprehensive Guide to Heaps: Definition, Operations, Sorting, and Production Applications

This article provides a thorough introduction to heap data structures, covering their definition, core operations such as insertion and deletion, heap sort implementation, and practical production use cases like priority queues, Top‑K queries, and TP99 calculation, all illustrated with Java code examples.

Data StructureJavaPriority Queue
0 likes · 17 min read
Comprehensive Guide to Heaps: Definition, Operations, Sorting, and Production Applications
Selected Java Interview Questions
Selected Java Interview Questions
Feb 4, 2020 · Fundamentals

Binary Heap: Definition, Operations, Build, Heap Sort, and Priority Queue Implementation in C

This article explains the binary heap data structure, its array representation, heap property maintenance via maxHeapify, construction of a max‑heap, heap sort algorithm, and the implementation of a max‑priority queue in C, including full source code and theoretical analysis.

AlgorithmsBinary HeapC Programming
0 likes · 10 min read
Binary Heap: Definition, Operations, Build, Heap Sort, and Priority Queue Implementation in C
Java Captain
Java Captain
Jan 5, 2019 · Fundamentals

Implementing Stack, Queue, and Priority Queue in Java

This article explains the core concepts of stacks, queues, and priority queues, discusses their time complexities, and provides complete Java implementations using arrays, including methods for insertion, removal, peeking, and display, along with a circular array queue example.

Data StructuresJavaPriority Queue
0 likes · 8 min read
Implementing Stack, Queue, and Priority Queue in Java