Posts
All the articles I've posted.
Python (Part 1): Building a WeChat Mini Program Bot for Scheduled Flash Sales and Setting Up a Maintainable Project
This article uses Charles to inspect a WeChat Mini Program’s API and builds a Python bot for scheduled orders, with results pushed to iOS through Bark. It also covers project scaffolding and dependency management, proxy selection, and optimizations involving multithreading, connection reuse, and request timing.
Enterprise JDK Upgrades (Part 1): Moving from JDK 11 to JDK 17
Using an upgrade of multiple company Java applications from JDK 11 to JDK 17, this article discusses compatibility checks and a staged migration. It covers changed exception messages, reflective-access restrictions, separate runtime and compile-time transitions, and supporting changes to Tomcat, Jenkins, and development environments.
JMX Exporter Source Analysis, Production Practices, and Scrape Timeout Troubleshooting
An investigation of JMX Exporter scrape timeouts compares MBean inclusion, rule caching, and attribute filtering. Source analysis and an extension allow querying only specified MBean attributes, followed by production configuration recommendations and the experience of contributing the change upstream.
Automating AWS EC2 Creation, Elasticsearch and Kibana Installation, and OpenTelemetry Monitoring
AWS CLI scripts create an EC2 instance and internal DNS record, while properties files and User Data organize deployment parameters and initialization. Using Elasticsearch, Kibana, and OpenTelemetry as examples, this article covers server configuration, automated deployment, and verification.
Locks in Java (Part 4): High-Performance Web Page Caching with a Read-Write Lock
Starting with Ehcache 2 web-caching source code, this article analyzes the role of ReentrantReadWriteLock in concurrent cache loading. It then discusses an Ehcache 3 migration and how a custom Filter, cache keys, and a read-write lock cooperate to handle concurrent requests for the same page.
A Practical Guide to Elasticsearch in Application Development, with a Real Optimization Case
A checklist for using Elasticsearch in application development, covering analyzer validation, field mappings, index planning, lifecycle management, and capacity estimates. A real logging use case illustrates performance problems caused by cleanup and writes, along with improvements using data streams, circuit breakers, and batching.
Building Elastic Stack from the Official Documentation: A Three-Node Elasticsearch Cluster, Kibana, Filebeat, Metricbeat, and Migration Without Downtime
Uses Docker Compose to build Elastic Stack with a three-node Elasticsearch cluster, Kibana, Filebeat, and Metricbeat, explaining TLS and monitoring configuration. Drawing on a production migration, it discusses moving from one node to a cluster through domain switching, data migration, and connection verification.
JDBC Streaming Reads and Correct Streaming Processing, with Examples
JDBC streaming reads.