---
title: "Himanshu Rai (@himanshunitrr) | Hashnode"
description: "Software Developer. Read the latest articles by Himanshu Rai on Hashnode."
url: "https://hashnode.com/@himanshunitrr"
---

@himanshunitrr

# Himanshu Rai

@himanshunitrr · Hyderabad India · Joined April 2023

Software Developer

### [How to Avoid Doing Microservices Completely Wrong](https://himanshurai.hashnode.dev/how-to-avoid-doing-microservices-completely-wrong?utm_source=hashnode&utm_medium=feed)

In this article, we will explore ideas and ways how one can screw up microservices. First, we will see the basics of what are microservices, what is a monolith and how a monolith is different from a microservice. Then we will see some anti-patterns o...

5 min read · [himanshurai.hashnode.dev](https://himanshurai.hashnode.dev/how-to-avoid-doing-microservices-completely-wrong?utm_source=hashnode&utm_medium=feed)

[Jun 11, 2023](https://hashnode.com/posts/how-to-avoid-doing-microservices-completely-wrong/64862cd3097858e12b1cbb19)

### [When NOT to use Collectors.toMap()](https://himanshurai.hashnode.dev/when-not-to-use-collectorstomap?utm_source=hashnode&utm_medium=feed)

In this article, we will see when not to use Collectors.toMap() in Java programming and how it can cause us NullPointerException. Introduction Let's try to recall what is a HashMap in Java and what are its properties. In Java HashMap is a collection ...

3 min read · [himanshurai.hashnode.dev](https://himanshurai.hashnode.dev/when-not-to-use-collectorstomap?utm_source=hashnode&utm_medium=feed)

[May 22, 2023](https://hashnode.com/posts/when-not-to-use-collectorstomap/646bc24950cde4adfd617132)

### [Atomic operations: Ensuring Consistency and Performance in Parallel Computing](https://himanshurai.hashnode.dev/atomic-operations-ensuring-consistency-and-performance-in-parallel-computing?utm_source=hashnode&utm_medium=feed)

In this blog we will explore atomic operations and why they are important when it comes to parallel computing.

4 min read · [himanshurai.hashnode.dev](https://himanshurai.hashnode.dev/atomic-operations-ensuring-consistency-and-performance-in-parallel-computing?utm_source=hashnode&utm_medium=feed)

[May 10, 2023](https://hashnode.com/posts/atomic-operations-ensuring-consistency-and-performance-in-parallel-computing/645be07919f8f5803178c317)

### [Sealed classes in Java](https://himanshurai.hashnode.dev/sealed-classes-in-java?utm_source=hashnode&utm_medium=feed)

Java as a language has always supported reusability of code, be it through Association(Has-A-relation) or Inheritance(Is-A-relation). But, do we always need reusability ?? Imagine a class DomesticAnimal, and it has some cool methods that are only app...

3 min read · [himanshurai.hashnode.dev](https://himanshurai.hashnode.dev/sealed-classes-in-java?utm_source=hashnode&utm_medium=feed)

[May 1, 2023](https://hashnode.com/posts/sealed-classes-in-java/645031589457cd553e62087d)

### [record keyword in Java-14](https://himanshurai.hashnode.dev/record-keyword-in-java-14?utm_source=hashnode&utm_medium=feed)

record in java, immutable class in java, jdk14 features,

3 min read · [himanshurai.hashnode.dev](https://himanshurai.hashnode.dev/record-keyword-in-java-14?utm_source=hashnode&utm_medium=feed)

[Apr 22, 2023](https://hashnode.com/posts/record-keyword-in-java-14/6443b702eac86d7315923a2d)
