JackSparrow414
Take problems seriously. Think them through. Solve them.
Do better, do more.
Recent Posts
Using JDK Flight Recorder to Troubleshoot Performance Issues in Production
This article explains how to continuously record JDK Flight Recorder data in production, periodically archive JFR files with a shell script, and use AI to analyze timelines, code, and thread evidence. The workflow helps SREs troubleshoot intermittent JVM performance issues such as slow responses, CPU spikes, and frequent garbage collection.
Kafka (Part 7): Integrating Apache Avro and Apicurio Schema Registry to Ensure Message Compatibility Between Producers and Consumers
To address deserialization failures caused by Kafka message format changes, this article walks through migrating from JSON to Avro and integrating Apicurio Schema Registry. It covers schema definition, Java class generation, producer and consumer configuration, and version compatibility checks, reducing the risk of poison-pill messages.
Frontend Security: JavaScript Obfuscation, Request Encryption, and Signing to Make Scraping Harder
Introduces JavaScript obfuscation, request-body encryption, and request signing through examples, including RSA key exchange, AES-GCM encryption and decryption, and backend timestamp and nonce validation. It discusses increasing the cost of API analysis and reverse engineering, and balancing security with performance.
Understanding Java NIO (Part 3): I/O Multiplexing and the Reactor Pattern in Java, with Open-Source Framework Code Analysis
This post implements a Multi-Reactor server with Java NIO and explains how Channel, Buffer, Selector, and wakeup work together. It also covers cross-thread channel registration and dynamically adjusting read/write events, and analyzes how NIO is applied in the source code of Apache HttpClient and the Kafka client.
Featured Series
More series →Kafka in Practice
7 posts
From setup and messaging design to producers, consumers, retries, CDC, and message compatibility.
Elasticsearch and ELK in Practice
11 posts
From setup, queries, and the Java client to logging configuration and collection, ILM, cluster deployment, monitoring, and application optimization.
Using Shiro
8 posts
From login, remember-me, and sessions to password encryption, tokens, JWT, and Spring Boot integration.
Understanding Java NIO
3 posts
From blocking I/O in C to I/O multiplexing, the Reactor pattern, and Java implementations.