Tech Musings
Author

Tech Musings

Capturing thoughts and reflections while coding.

49
Articles
0
Likes
46
Views
0
Comments
Recent Articles

Latest from Tech Musings

49 recent articles
Tech Musings
Tech Musings
Mar 27, 2020 · Fundamentals

How Virtual Functions Expand C++ Class Size and Shape Memory Layout

This article explains how C++ compilers implement virtual functions using a hidden vptr and virtual table, showing how class size grows from 1 to 8 bytes, detailing memory layouts for single, multiple, and diamond inheritance, and providing commands to dump vtable and layout information.

CInheritanceMemory Layout
0 likes · 14 min read
How Virtual Functions Expand C++ Class Size and Shape Memory Layout
Tech Musings
Tech Musings
Oct 31, 2019 · Databases

Master MySQL Tricks: Upserts, Ignoring Errors, Joins, Pagination & More

This guide explores advanced MySQL techniques—including ON DUPLICATE KEY UPDATE for upserts, INSERT IGNORE to bypass errors, replacing subqueries with JOINs, handling LEFT JOIN pitfalls, efficient pagination strategies, multi‑table UPDATE/DELETE via JOIN, and the nuances of COUNT(*) versus COUNT(1).

COUNTJOINMySQL
0 likes · 12 min read
Master MySQL Tricks: Upserts, Ignoring Errors, Joins, Pagination & More
Tech Musings
Tech Musings
Oct 25, 2019 · Backend Development

How to Analyze and Tune Java GC Logs for Parallel, G1, and CMS Collectors

This guide explains how to configure JVM options to capture GC logs, use GCViewer to interpret Parallel, G1, and CMS collector logs, decode each log field, and apply concrete tuning parameters to improve pause times and overall application throughput.

GC tuningParallelGCPerformance optimization
0 likes · 17 min read
How to Analyze and Tune Java GC Logs for Parallel, G1, and CMS Collectors
Tech Musings
Tech Musings
Oct 25, 2019 · Backend Development

Choosing the Right Java Garbage Collector: A Practical Guide for JDK 1.8

This article explains the seven Java garbage collectors available up to JDK 1.8, compares their strengths and weaknesses, and shows how to select and tune the appropriate collector—Serial, Parallel, CMS, or G1—based on application characteristics and deployment environments.

CMSG1JDK
0 likes · 11 min read
Choosing the Right Java Garbage Collector: A Practical Guide for JDK 1.8
Tech Musings
Tech Musings
Oct 20, 2019 · Backend Development

How Netty Supercharges ThreadLocal with FastThreadLocal – Inside the Code

This article dissects Netty's custom FastThreadLocal and FastThreadLocalThread implementations, showing how they replace JDK ThreadLocal with constant‑time indexed access, padding to avoid false sharing, and customizable initialization and cleanup to boost backend concurrency performance.

FastThreadLocalNettyPerformance
0 likes · 16 min read
How Netty Supercharges ThreadLocal with FastThreadLocal – Inside the Code
Tech Musings
Tech Musings
Oct 17, 2019 · Backend Development

Fixing Spring Boot Quartz Integration: JobFactory and Autowiring Explained

After discovering misconfigurations in a Spring Boot project’s QuartzJobBean implementation, this article examines the root causes, compares legacy and modern Spring solutions—including custom JobFactory, AutowireCapableBeanFactory, and the spring-boot-starter-quartz starter—and provides detailed code examples to correctly integrate Quartz with Spring’s IoC container.

JavaQuartzautowiring
0 likes · 13 min read
Fixing Spring Boot Quartz Integration: JobFactory and Autowiring Explained