Author Archives: ronaldpringadi

Apache Kafka vs RabbitMQ for Messaging in Java (and Where ActiveMQ Fits In)

If you’re standing in front of a whiteboard in Java land and someone has just drawn a box labelled “message queue,” you’re probably going to argue about Apache Kafka and RabbitMQ for the next forty minutes. They’ve become the default … Continue reading

Posted in java | Tagged , , , , , | Comments Off on Apache Kafka vs RabbitMQ for Messaging in Java (and Where ActiveMQ Fits In)

Java Web Servers Compared: Tomcat, JBoss EAP, WildFly, and Spring Boot

If you’ve been writing Java for the web at any point in the last two decades, you’ve had to pick a web server or application server at least once. The choices haven’t changed much in name — Tomcat, JBoss, WildFly, … Continue reading

Posted in java | Tagged , , , , , | Comments Off on Java Web Servers Compared: Tomcat, JBoss EAP, WildFly, and Spring Boot

Starting a Spring Boot API Microservice From Scratch With Spring Initializr

The fastest way to get a new Java microservice off the ground is also the most boring one, and that’s a compliment. You go to start.spring.io, click a few checkboxes, download a zip, and you have a runnable Hypertext Transfer … Continue reading

Posted in java | Tagged , , , | Comments Off on Starting a Spring Boot API Microservice From Scratch With Spring Initializr

Why Ember.js Still Makes Sense for Big Teams Building Big Apps

In a JavaScript world dominated by React’s flexibility and Vue’s friendliness, Ember.js can feel like the quiet older sibling who keeps showing up to work in a suit. It’s opinionated, batteries-included, and unapologetically convention-driven. Which is exactly why some of … Continue reading

Posted in javascript | Tagged , , | Comments Off on Why Ember.js Still Makes Sense for Big Teams Building Big Apps

List open or listening ports

You started a service, you can’t tell whether it actually bound to its port, and you want to see what’s listening — or you want to find out which process is squatting on port 8080. Two one-liners, two operating systems: … Continue reading

Posted in Bash, Operating System | Comments Off on List open or listening ports

MongoDB Notes

If you’re storing binary files inside MongoDB, the convention is called GridFS. It splits each logical file into two collections: a metadata document and a sequence of binary chunks. This post is a cheat sheet for inspecting and tweaking those … Continue reading

Posted in Database | Comments Off on MongoDB Notes

CentOS 6 repo Settings

To fix repo settings in CentOS 6 1. make sure there is no proxy or funny settings in vi /etc/yum.conf 2. There are a couple of files within /etc/yum.repos.d/. Make sure the url are correct (accessible) and enabled=1 ll /etc/yum.repos.d/ … Continue reading

Posted in Linux | Comments Off on CentOS 6 repo Settings

Show Linux Partition Tree Mountpoint and If SSD

1lsblk -o TYPE,NAME,KNAME,UUID,MOUNTPOINT,SIZE,ROTA

Posted in Linux | Comments Off on Show Linux Partition Tree Mountpoint and If SSD

Setting log4j log level programmatically

Sometimes you don’t want to ship a log4j.properties file — you want to spin up logging in code. Useful inside unit tests, one-off debug runs, or anywhere you want to flip log levels at runtime. Here’s a self-contained setupLog4j() that … Continue reading

Posted in java | Comments Off on Setting log4j log level programmatically

Print java stack trace from anywhere

Need to know which code calls a specific location? Dump the stack trace: 1234import org.apache.commons.lang3.exception.ExceptionUtils; // …somewhere in your method: LOG.trace(ExceptionUtils.getStackTrace(new Throwable())); You’re constructing a Throwable just to capture the current stack — you’re not throwing it. ExceptionUtils.getStackTrace turns the … Continue reading

Posted in java | Comments Off on Print java stack trace from anywhere