Most developers use cache in their application code. But only few developers know advanced patterns such as Read Through Cache. In this article, we will explain the default way of using the cache and compare it with other advanced patterns, especially Read Through Cache.

Cache Aside Model

Request data from the cache using a key. If cache has the data, return it to the caller immediately.…

Read More

Good code is reusable, maintainable, scalable and performs well.

Reusability

There is a popular maxim:

When in hurry, copy-paste. And later refactor.

When we think reusability, we think about reusable components or reusable packages.Some sort of utility. Which can be reused all over. But reusability is much more than that. If two methods look similar, create another method. Call the third method for each of the two methods.…

Read More