Apurva SinghHow the Humble Synchronized beats ReentrantLock.. Simplified for a long suffering Java ProgrammerIn year 2009 I was working for German Railways employee shift management, a mission critical project, and we chose to work with Java 1.5…Jun 19Jun 19
Apurva SinghHow many Threads can you Practically Run on JVM: Pre Java21, and with Java21 Virtual ThreadsSomeone asked me in an interview what will happen if I run the following Java program:Jun 8Jun 8
Apurva SinghNever Never use Linked Data Structures.. except when.... Except when you need sort order (and LinkedList doesn’t even provide sort order).May 23May 23
Apurva SinghLow Latency Programming with Chronicle Wire and java.net.* SocketExperience has shown that serialization/deserialization consumes significant part of round trip time in inter process communication. Low…Apr 7Apr 7
Apurva SinghLow Latency Programming: StampedLock OptimisticLocking (tryOptimisticRead) is the ChampionStampedLock is highly underused. But it is the fastest among all locks: * ReentrantLock * ReentrantReadWriteLock * StampedLockMar 301Mar 301
Apurva SinghEvery Senior Java Developer must know how and when to use Generics Lower and Upper BoundMy aim is to explain the ? super SomeClass and ? extends SomeClass menace as briefly as possible so that you can memorize it. This is also…Feb 13Feb 13
Apurva SinghStepwise guide on how to make Executable Jar using Java9 Multimodule Project, Spring Boot, and…Above meme displays reality of life of a programmer.Feb 11Feb 11
Apurva SinghFour Programming Models: Does Actor Model vanquish Object Oriented?Being a pedagogue, I suggest, there are four ways to program * Procedural (Fortran code blocks) * Object Oriented (new kid on the block…Jan 11Jan 11