Decentralization is a tricky concept. There are many facets to it. In this article, I want to talk about decentralizing everything in a way it doesn't hurt you or your organization. When I think about decentralization the first thing that comes to my mind is Self Service. Self Service Self-service is very important in a truly decentralized system. The people working on … [Read more...] about Principles of Microservices – Decentralize All The Things
Principles Of Microservices: How To Architect A Solution
Every enterprise has its own principles. Principles that takes it towards the goals. Principles that give birth to practices which are the underlying foundation for all the implementation. Similarly, Microservices has its own set of principles that helps its implementer to make the correct decision when given multiple options to choose from. Principles are like … [Read more...] about Principles Of Microservices: How To Architect A Solution
Principles Of Microservices: Culture Of Automation
This article is written in a succession of the previous article that talks about the first principle of microservices i.e. modelling of microservices around a business domain. Once you have modelled the microservices around your business models and you are confident that you have done a good job, then the next step is to focus on automating your infrastructure. Automation … [Read more...] about Principles Of Microservices: Culture Of Automation
iTerm2 – Colorize The Tailed Logs In ITerm2 Terminal
Coloured logs are very helpful especially when you are going to deploy your application in production. The moment when the live traffic is shifted to your servers and you sit there eagerly watching the logs roll off in speed, only one thing in your mind that no warnings and errors should go by unnoticed. This is the best situation where colors play an important role. In this … [Read more...] about iTerm2 – Colorize The Tailed Logs In ITerm2 Terminal
QuickSort – Understanding the QuickSort Algorithm and Implementation
QuickSort algorithm is a brilliant idea of Tony Hoare. This algorithm is so effective that if implemented well, it can be 2x or 3x faster than its competitors merge sort and heap sort. I personally like quick sort algorithm because of its simplicity and speed. But I'm surprised to see that so many people get confused with quick sort algorithm. But worry not, because I … [Read more...] about QuickSort – Understanding the QuickSort Algorithm and Implementation
How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
This is legacy stuff, which means you either stuck somewhere or you are about to get stuck somewhere. Am I right or am I right? :D The JNDI stuff is really confusing especially if you have not seen the younger architecture of the web. So, let's talk about the earlier architecture and System Design where it was used. Monolith Architecture Mostly all of the legacy … [Read more...] about How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
Do You Have To Be Good At Mathematics to Become a Great Programmer?
Someone at work asked me this question- "Are Good Programmers also Good Mathematicians?". This question got me into thinking about all the stuff that people are doing in most of the IT companies. They call themselves programmers, but are they, good mathematicians? In this article, I'm going to get into deeper level and talk about the software craftmanship and clean coding … [Read more...] about Do You Have To Be Good At Mathematics to Become a Great Programmer?
Create Page Layouts with React and Typescript
Layouts are one of the most important pieces when it comes to web development. Let's say you have a website that offers a member's dashboard so that the members of the site can login and get the exclusive content. Now, you wouldn't want to have the same layout for your members that you have for a non-member of your website. The logged-in user may have access to a lot more … [Read more...] about Create Page Layouts with React and Typescript
SWAGGER UI – Enable Token-Based Authentication In Spring Boot
Swagger UI is the first choice of every developer and tester when it comes to documenting service APIs. It provides live documentation for the APIs where you can actually send the request and get the things done. It really makes it easy for other people to understand your APIs as well. Whenever you are working on a project that depends on stateless authentication (which … [Read more...] about SWAGGER UI – Enable Token-Based Authentication In Spring Boot
Superstitious India – India In The Grip Of Superstitions
Today I met a strange woman, she was walking down the road, at the hottest hours of the day (40 degrees to be precise) and asked me for a lift. I gave her a lift and in return, she thanked me so much that she blessed me saying "I wish you have a great day today". I guess her wishes worked for me as I actually had a very good day. But I wonder, what would have happened if I … [Read more...] about Superstitious India – India In The Grip Of Superstitions
Top 5 Indian movies every American must watch
Hello Readers!!! I have been planning to write this article (Top 5 Indian movies every American must watch) for a long time. With so much crap in Bollywood, it has become really difficult for an outsider to differentiate good movies from the bad ones. And I really don't want to portrait the bad side of Bollywood. In fact, Bollywood has produced some of the best movies of … [Read more...] about Top 5 Indian movies every American must watch
3 Best Life Lessons Learned from Naruto Uzumaki
Naruto is one of the best anime that I have come across. The story revolves around Naruto Uzumaki, an orphaned kid who is mistreated by his fellow villagers because of a past incident, and his conquest to become the Hokage (a title bestowed on the village's leader) so that everybody in the village acknowledge and respect him. The journey that Naruto goes through has abundant … [Read more...] about 3 Best Life Lessons Learned from Naruto Uzumaki
Never Do These 10 Things Ever
1. Never Upload A Mirror Selfie With iPhone You look IDIOT NOT RICH 2. Never Keep Your Smartphone With You While Studying We all know what we do with our smartphones. We do everything except study. 3. Never Go To Sleep Without Planning Your Next Day Always keep a small diary or notebook by your side so that you can quickly jot down the things you need to … [Read more...] about Never Do These 10 Things Ever
Work From Home Is So Much Better Than Office If You Follow These 5 Tips Religiously
This pandemic has changed our lives so much. A week before I was sitting in the office and working with my colleagues. And a week later I had to rush home because of the lockdown. WFH was not the problematic part, the main problem was that it happened so quickly. And when things move quickly, there is no time to think and plan. Things just happen on autopilot. People … [Read more...] about Work From Home Is So Much Better Than Office If You Follow These 5 Tips Religiously
Coronavirus: Tests carried out in India and the Contemporary World
Over 10 million confirmed novel Coronavirus (Covid-19) cases globally and with more than 1,00,000 cases being detected every day across the world, there is an imperative to ramp up testing. Various testing methods are being employed for this task and we have addressed them one by one in this article. This article also focuses on innovative and rapid sample collection … [Read more...] about Coronavirus: Tests carried out in India and the Contemporary World
Facebook’s Grand Plan found a new lease on life in India by buying a stake in Reliance JIO
Facebook and Reliance Jio new deal has been a talk of the town. FB bought a stake in Reliance Jio for Rs 43,574 crore and became the largest minority shareholder. The deal is a win-win situation for both parties. On one hand, Reliance reduced its debt burden by $21 billion (1,61,035 crore) in 58 days and on the other side, FB is finally set to achieve its grand plan after … [Read more...] about Facebook’s Grand Plan found a new lease on life in India by buying a stake in Reliance JIO
How To Mock SecurityContextHolder in Spring Security using Mockito?
Test-driven development is a pretty awesome design process. And while building your code, you may want to mimic the logged-in user. In Spring Security, the logged-in user principal is stored inside the Authentication object. This Authentication object can be accessed from any part of your application using SecurityContextHolder. The SecurityContextHolder is a singleton … [Read more...] about How To Mock SecurityContextHolder in Spring Security using Mockito?
Travelling Tips for a foodie
Hey friends, I hope you all liked my previous blog. If you have any topics in mind then you can suggest me and leave your comments below and please let me know if you liked it or not :). Starting with this interesting topic of travelling, let me first tell you that I love travelling. Till now, I have travelled most of the tourist places in India covering east, west, … [Read more...] about Travelling Tips for a foodie
Load Spring Beans Based On Different Profiles Via XML
While working on a legacy project, sometimes it becomes so hard to find such small pieces of stuff. Recently I faced a similar problem where I had to load spring beans based on the loaded profiles respectively. With Spring Boot and annotation, it has become really easy. Just put the @Profile("profile1, profile2") and it works. Similarly, it is done in XML as well. All you … [Read more...] about Load Spring Beans Based On Different Profiles Via XML