Skip to content

Design Forum

Members Public

Lambda Expressions and Exception Handling

This short article will explore a few options to handle checked and unchecked exceptions in lambda expressions.

Lambda Expressions and Exception Handling
Members Public

Streams and Iterables

In this short article, we'll explore various StreamSupport methods that allow us to wrap an Iterable instance as a stream of elements.

Streams and Iterables
Members Public

Implementing a Custom Thread Pool

In this article, we'll explore some multithreading concepts by writing our very own custom thread pool to manage several tasks and threads.

Implementing a Custom Thread Pool
Members Public

Maintaining equals and compareTo contract

Any change in the collection being used should not impact the behavior of a class.

Maintaining equals and compareTo contract
Members Public

Logging - information vs noise

In this post, we will try to curate best practices that we should during application development for the logging track

Logging - information vs noise
Members Public

LRU Cache

Least recently used (LRU) eviction policy defines the eviction criteria to control the number of entries present in a cache.

LRU Cache
Members Public

Optimistic vs Pessimistic Locking

In this post, we will explore the differences between optimistic and pessimistic locking and the respective use-cases.

Optimistic vs Pessimistic Locking
Members Public

Remote Proxy Pattern

Assuming the actual instance to be a remote service instance, we can use the design pattern to implement a client server model allowing us to segregate the complex business logic as a separate layer.

Remote Proxy Pattern