Every design pattern is the outcome of engineers devising globally applicable solutions to frequently common problems faced by them.

Singleton pattern solves two such problems:

  • Ensures that a class has just one instance.
  • Provides a global access point to that instance.

Real-World Analogy


Photo by Alex Meier on Unsplash

Whether we are starting to learn a new language or preparing for our first college placement or interview, we all have learned and implemented Binary Search in our lives.

Before moving forward let us go over the basics of Binary Search.
In Binary Search, we divide the array from the middle and compare the element to be searched against the middle element. If the element is less than the middle we narrow the search interval to the first-half otherwise narrow the interval to the second half. …


Today we are going to discuss what is binary search, how to implement it recursively, and benefits of using binary search to lookup element in a given set of data.


Today we are going to discuss what is binary search, how to implement it iteratively, and benefits of using binary search to lookup element in a given set of data.

Algorithm

Let us go over…


Today we are in a state of emergency! The world has come to a standstill with locked-down economies, businesses losing money every day, and as a result of it, many people losing their jobs.

Although something like this happens once in decades, it teaches us a lesson to remember. The lesson to divide our income among needs, wants, savings, and repayment of loans i.e. debts. In short the importance of budgeting.

Budgeting is a process of creating a plan to spend your money. Individuals, companies, even governments budget before they start spending. …


In my last post, I spoke about how I got introduced to investing accidentally. But the journey from there is more of a learning path. I have curated a list of 10 saving schemes that every investor should know and diversify their portfolio with the help of these low risk, good returns schemes.

Saving schemes are not only a way to achieve your long-term material goals, but can also provide an extra income.

Some of the various schemes available are:

Public Provident Fund (PPF)

The Public Provident Fund (PPF) is a low-risk investment option with tax benefits under section 80C of the Income Tax…


Like every other 21 years old, I believed in living in the moment, no worries about the future, no pressure to earn money, and no need to save. I got a monthly allowance and every now and then a bonus payout from my parents to fulfill my monthly needs.

The first time I got introduced to the concept of savings was more like an accident when somehow I did not spend my entire monthly allowance and I had more to spend the next month. The second time I considered saving some amount when I needed a guitar. These two events…


Being said that, I think it will be much easier for all of us to understand what to expect out of this article.

From my experience of joining a new organizations, working on existing applications, creating new features on top of that application and every now and then fixing numerous amount of bugs in the existing code, I have realised that it is very important to understand how an application works, inside-out, to do your job in a much better way and also without stress.

Let’s face the truth, most teams expect you…


What are Microservices?

fig 1.1. Basic Microservice Architecture

example: In an E-commerce application designed with such architecture style, a user visiting his/her order history page, the client will call User microservice to fetch user detail and then call Order microservice to fetch the history and consolidate them to show order history page on the client’s device.

The problem with the above approach is that Microservices…


In today’s era of technology, where new technologies are being introduced in a developers life on a nearly daily basis, monolithic applications are being broken down to smaller and highly scalable independent services and old technologies are evolving to meet the need for high scalability and low latency of services, we face the question and challenge to improve the communication between our microservices.

With my recent curiosity to understand microservice architecture and various architectural patterns involved in designing it, I came across a basic yet important question,

Akshay Saxena

Founder @Fundbakery. The fun on the journey is more interesting than the excitement of arrival.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store