Java.
31 posts — Posts about Java
JVM Garbage Collectors: A Field Guide
The common garbage collectors in the JVM include Serial, Parallel, ParNew, CMS, G1, and ZGC. They differ in concurrency, pause times, throughput, and the scenarios they suit best.
Zookeeper Visual UI Tools
A roundup of popular Zookeeper GUI tools: the commercial Zookeeper Assistant, the open-source PrettyZoo, plus zktools and zkui, with hands-on impressions and picking advice.
Setting Up a Zookeeper Cluster
Building a 5-node cluster with Zookeeper 3.8.0 on Debian 11: from the basics of Znodes and the ZAB protocol to zoo.cfg configuration, myid setup, and a Leader election experiment.
JUC Review (Part 2): Understanding Locks
Part 2 of my JUC review: a survey of common lock concepts — fair locks, reentrant locks, read-write locks — plus how the CAS algorithm works, the ABA problem, and where AQS fits in.
JUC Review (Part 1): Thread Fundamentals
Part 1 of my JUC review: starting from the JVM memory model and thread stacks, covering threading models, the five thread states, and how to create thread pools and their rejection policies.
Thoughts on Serverless Architecture
Starting from the FaaS execution model, this post walks through Serverless's pay-per-use billing and auto-scaling advantages, examines vendor lock-in and cold starts, and offers a framework for judging when it fits.
An Idea for a Java Logic Engine
An idea for a visual logic engine that bakes the factory, proxy, strategy, and decorator patterns plus SPI into one tool: compose business logic by dragging components, Kettle-style, so backend developers write less boilerplate.
Cracking JRebel in IntelliJ IDEA 2020
A walkthrough of activating JRebel inside IDEA, plus a look at where JVM hot deployment hits its limits and a few compliant alternatives.
Notes from Building an IntelliJ IDEA Plugin
Notes from building my own MyBatis SQL log parsing plugin: why I built it, how parameter filling works under the hood, the learning curve of IDEA plugin development, and some takeaways from publishing to the plugin marketplace.
How I Think About Java Backend Architecture
Organizing my understanding of Java backend architecture: from coding standards, module decomposition, middleware, and database governance to security, team collaboration, and the evolution toward microservices.