Category: Short Writeups

  • Spring Framework

    Spring Core Spring has many parts. Core is about dependency injection /version where we have to decouple the classes. Spring has containers just like a Tomcat has called a container. It manages the lifecycle of an object mentioned in XML similar to Tomcat. This works based on Factory Pattern – A factory class can instantiate…

  • TypeScript

    Issues with JavaScript Var a = “gaurav”; var a; var a = 1;We aren’t definitning what kind of value a is so it becomes difficult for further manipulations. Type safety is an issue. function  sum( var , var b ) { return a + b}sum(2 , 3); sum ( 2, 3, 4); both return same…

  • Microservices

    Microservices are a software development technique—a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services[1] In a microservices architecture, services are fine-grained and the protocols are lightweight. The benefit of decomposing an application into different smaller services is that it improves modularity. This makes the…

  • JVM Architecture & Garbage Collection

    JVM Architecture class loader in detail java memory areas runtime data areas – 2 covered out of 5 runtime data areas rest 3 Execution engine Garbage collection basic compartments in heap Eden space starts filling with object and ones in dark are marked for garbage collection Post that the other objects in green are moved…

  • Java Memory Management

    All local variables/primitives go on the stack. Every thread has its own stack. Heap Heap stores all Objects. So String, Integer etc are created on this. The references to these are given to the Stack. JAVA is Pass by Value. Every primitive variable created on stack is separate for each function and has a different…