Programmer1970
Author

Programmer1970

Formerly called 'Code to 35'. Add our main WeChat ID to access a wealth of shared resources (algorithms, interview prep, tech stacks: Java, Python, Go, big data). We mainly share serious development techniques, focusing on output-driven input. Occasionally we post life snippets and gossip. Our aim is to attract precise traffic and test advertising opportunities.

123
Articles
0
Likes
329
Views
0
Comments
Recent Articles

Latest from Programmer1970

100 recent articles max
Programmer1970
Programmer1970
Nov 18, 2024 · Backend Development

How to Resolve Message Backlog and Why Kafka Outperforms RocketMQ

The article outlines practical solutions for RocketMQ message backlog—including scaling consumers, optimizing logic, batch consumption, producer throttling, broker tuning, monitoring, and emergency plans—then explains why Kafka delivers higher performance through sendfile zero‑copy, simple log storage, efficient memory use, and batch sending, and finally compares the two systems on reliability, retry, transactions, filtering, ordering, and suitable use cases.

BacklogKafkaMessage Queue
0 likes · 8 min read
How to Resolve Message Backlog and Why Kafka Outperforms RocketMQ
Programmer1970
Programmer1970
Nov 17, 2024 · Backend Development

Elasticsearch Scripting Explained: Compute Fields, Custom Scoring, Best Practices

This article provides a comprehensive overview of Elasticsearch scripting, covering its role in dynamic query and indexing calculations, detailed Painless script examples for custom scoring, field generation, and updates, the script execution lifecycle, common use cases, and practical best‑practice recommendations for performance and security.

Custom ScoringElasticSearchPainless
0 likes · 11 min read
Elasticsearch Scripting Explained: Compute Fields, Custom Scoring, Best Practices
Programmer1970
Programmer1970
Nov 7, 2024 · Information Security

10 Practical Ways to Generate Random Passwords in Java

This article presents a collection of Java techniques—including Random, SecureRandom with Base64, ThreadLocalRandom, Collections.shuffle, third‑party libraries like Apache Commons and Guava, custom character sets, template‑based generation, and regex validation—to create secure random passwords with configurable length and complexity.

Base64GuavaJava
0 likes · 15 min read
10 Practical Ways to Generate Random Passwords in Java
Programmer1970
Programmer1970
Nov 5, 2024 · Backend Development

RedisSearch vs Elasticsearch: Which Full‑Text Search Engine Fits Your Needs?

The article compares RedisSearch and Elasticsearch across definition, storage model, performance, query capabilities, scalability, ease of integration, and operational considerations, helping readers decide which solution best matches requirements such as real‑time response, data volume, query complexity, and existing tech stacks.

ElasticSearchFull-text SearchRedisSearch
0 likes · 7 min read
RedisSearch vs Elasticsearch: Which Full‑Text Search Engine Fits Your Needs?
Programmer1970
Programmer1970
Oct 29, 2024 · Backend Development

Master Google Guava’s Multimap to Boost Programming Efficiency

This article explains Guava's Multimap feature, covering its core one‑to‑many mapping capabilities, common methods, various implementations (ArrayListMultimap, HashMultimap, LinkedHashMultimap, TreeMultimap, immutable and synchronized versions), and provides concrete Java code examples and a social‑network scenario to help developers choose the right implementation.

Google GuavaImmutableJava
0 likes · 13 min read
Master Google Guava’s Multimap to Boost Programming Efficiency
Programmer1970
Programmer1970
Oct 28, 2024 · Databases

Why Is Redis So Fast? Inside Its Memory Storage, Data Structures, I/O Multiplexing, and Network Protocols

Redis achieves millisecond‑level latency by storing all data in memory, using specially optimized data structures such as SDS, incremental‑rehash hash tables, and ziplists, employing a single‑threaded event‑driven model with epoll‑based I/O multiplexing, and streamlining network communication through the compact RESP protocol, compression, and batching, while also offering flexible eviction and persistence strategies.

Cache EvictionEvent-Driven ArchitectureI/O multiplexing
0 likes · 11 min read
Why Is Redis So Fast? Inside Its Memory Storage, Data Structures, I/O Multiplexing, and Network Protocols
Programmer1970
Programmer1970
Oct 24, 2024 · Databases

Demystifying MySQL InnoDB’s Thread Model: A Deep Dive

The article explains MySQL InnoDB’s multi‑thread architecture—including the Master, IO, Purge, and Page Cleaner threads—detailing each thread’s responsibilities, configurable parameters, and how they cooperate to achieve high‑performance, concurrent data reads and writes while maintaining consistency and crash recovery.

InnoDBMySQLconcurrency
0 likes · 11 min read
Demystifying MySQL InnoDB’s Thread Model: A Deep Dive