Hinduism doesnot has 330 million Gods

The common in correct fact that is spreading around the world is “Hinduism has 330 million Gods”.

In Sanskrit, it is said that there are ‘33 Koti’ gods. The word ‘Koti’ here means ‘types’ and NOT ‘crores’ (1 crore=10 million).

In the Bhagavata Purana, the names of 12 Adityas are given as:

  1. Dhaataa,
  2. Mita,
  3. Aaryamaa,
  4. Shakraa,
  5. Varuna,
  6. Ansha,
  7. Bhaaga,
  8. Poosha,
  9. Savita,
  10. Tavaastha,
  11. Vivaaswaana
  12. Vishnu.

8 types of Vasu as,

  1. Dhara,
  2. Dhruva,
  3. Soma,
  4. Aha,
  5. Anila,
  6. Anala,
  7. Pratyusha,
  8. Prabhaasha.

11 types of Rudras as,

  1. Hara,
  2. Bahuroopa,
  3. Trayambaka,
  4. Aparaajita,
  5. Brushaakaapi,
  6. Shambhoo,
  7. Kapaardi,
  8. Revaata,
  9. Mrugvyaadha,
  10. Sharvaa
  11. Kapaali.

The remaining two types are Ashwini and Kumara.

In total there are 33 Gods.

Performance debugging patterns and guide

Working on 5 different kinds of project on performance improvement analysis, you get to know the pattern in performance debugging.

I have worked on analysing performance problems in projects that are developed in different languages and for different purpose. Still, I can find a pattern in performance problems.

If you are starting on debugging a performance issue then this post will help you narrow down the problem you face in the project.

Before that you need to understand few terminologies,

Performance vs scalability

In the book Pro-JavaEE by Steve Haines, discusses the topic of scalability and performance. Here’s Steve’s definition of Scalability vs Performance:

“The terms “performance” and “scalability” are commonly used interchangeably, but the two are distinct: performance measures the speed with which a single request can be executed, while scalability measures the ability of a request to maintain its performance under increasing load. For example, the performance of a request may be reported as generating a valid response within three seconds, but the scalability of the request measures the request’s ability to maintain that three-second response time as the user load increases.”

Scalability is a whole new problem. Let us not touch that for now, These are some of the examples of performance problems which I faced personally,

  1. REST API which responded in 500ms when there is no user. The same API responded in 40 Sec or not even responded when 50 concurrent users accessed it.
  2. A script which can read and process a single file with 10 lines in less than a second, whereas takes hours of processing for 50+ files with 1000 lines.
  3. A web application which loaded pages in seconds, never loaded for 100 concurrent hits.

The above problem will continue even when you increase the servers capacity (CPU, Memory and even new servers).

Performance Pattern

Now with understanding of the term performance, we will see the list of performance pattern.

Data is the problem

The biggest bottle neck in performance in almost all projects in on how you handle the data. It doesn’t matter whether you use a database management system like MySql, Oracle or Object based database like LDAP or even flat files, that’s the palce you have to check first. I will cover on how to identify and correct the bottleneck in data access for every data source as a separate post.

Latency on dependent systems

Next checkpoint is when you use a 3rd party service. If you are dependent on external system then you have to check the behaviour here. Any external calls using REST, SOAP should be added to watch. You can easily find this by adding log statements before and after the calls.

Is there a Cache ?

Most complex system has a cache. You cache heavy processed data, yet there is a performance problem. Then you have to look for cache hits and miss ratio. If you have more miss, then you have to re-look on the way in which you cache the data.May be you can increase the cache expiry.

Next post will cover on steps to narrow down the exact problem.

Goodluck and Happy debugging.

Jekyll - Best for static sites and blogging

This first post is to honor hardworking developers of Jekyll, who made my life easy in developing static website and pages.

First time building a static webstite ?

Checkout jekyllrb.com for installation, setup and running.

For free themes and templates - jekyllthemes.org.

I was able to build and get this site up and running in 15 mins. Thanks to them.