ADAlok Dubeyinalokdubey.hashnode.dev·Mar 31, 2025 · 2 min readSpeed Up API Calls with Java's HttpClientWhile integrating with an external service, I needed to make high-volume API calls as efficiently as possible. The service responds in under 10ms, and blocking threads would slow everything down.To solve this, I used Java's built-in HttpClient and it...00
ADAlok Dubeyinalokdubey.hashnode.dev·Mar 13, 2024 · 1 min readExploring Python's Concise SyntaxLet's see some examples of Python's concise syntax. List Comprehension List comprehension provides a compact way to create lists based on existing lists. Let's say we want to generate a list containing even numbers till 10. With For Loop: even_number...00
ADAlok Dubeyinalokdubey.hashnode.dev·Feb 17, 2024 · 2 min readExploring SequencedCollection in Java 21With the introduction of SequencedCollection in Java 21, interfaces like List and Deque now directly extend SequencedCollection, which in turn extends the Collection interface. This ensures uniformity across implementations for operations such as acc...00
ADAlok Dubeyinalokdubey.hashnode.dev·Feb 13, 2024 · 2 min readSorting a List of Objects in Java: A Configurable Approach with Comparator and EnumsIn this article, I have shown a way to sort a list of Employee object based on a specific field and the sorting order using Comparator. The code snippet shows that the sorting criteria are configurable, eliminating the need to add an if/else block wh...00