Three Knives
Author

Three Knives

Every line of code you contribute to open source could help make the future better.

51
Articles
0
Likes
28
Views
0
Comments
Recent Articles

Latest from Three Knives

51 recent articles
Three Knives
Three Knives
Nov 22, 2025 · Backend Development

Smart‑Socket Performance Tuning: Thread Model, Buffer Optimization, and Stress Testing

This article explains how to maximize throughput and minimize latency of the smart‑socket Java AIO framework by configuring thread counts, applying thread affinity, adjusting read/write buffer sizes, using memory pools, conducting benchmark tests, monitoring runtime metrics, and fine‑tuning JVM options for high‑concurrency, low‑latency network applications.

JVM tuningPerformance Tuningbuffer optimization
0 likes · 11 min read
Smart‑Socket Performance Tuning: Thread Model, Buffer Optimization, and Stress Testing
Three Knives
Three Knives
Nov 21, 2025 · Information Security

Implementing SSL/TLS Secure Communication in smart-socket: Certificate Configuration and Best Practices

This chapter explains how smart-socket uses the SslPlugin to add SSL/TLS encryption, covering protocol basics, server and client configuration with JKS, PEM and auto‑generated certificates, mutual authentication, security best practices, performance tuning, common troubleshooting steps, and concise Java code examples.

JavaSSLSslPlugin
0 likes · 15 min read
Implementing SSL/TLS Secure Communication in smart-socket: Certificate Configuration and Best Practices
Three Knives
Three Knives
Nov 20, 2025 · Backend Development

How to Build Custom smart-socket Plugins to Extend Framework Functionality

This article walks through the smart-socket plugin system, explaining the Plugin interface, its lifecycle, the AbstractPlugin base class, and step‑by‑step examples for creating message‑filter, connection‑limit, and heartbeat plugins, followed by registration, execution order, and best‑practice recommendations.

Javabackendnetworking
0 likes · 9 min read
How to Build Custom smart-socket Plugins to Extend Framework Functionality
Three Knives
Three Knives
Nov 19, 2025 · Backend Development

Deep Dive into smart‑socket’s Built‑In Plugin System

This article explains smart‑socket’s extensible plugin architecture, detailing the Plugin and AbstractPlugin interfaces, and demonstrates how to integrate built‑in plugins such as SSL/TLS encryption, heartbeat detection, blacklist filtering, memory‑pool monitoring, traffic logging, socket option configuration, and idle‑state handling, while covering plugin ordering, custom development, performance considerations, and best‑practice recommendations.

JavaSSLblacklist
0 likes · 13 min read
Deep Dive into smart‑socket’s Built‑In Plugin System
Three Knives
Three Knives
Nov 18, 2025 · Backend Development

Smart-Socket Connection Management: Session Lifecycle, Limits, and Quality Monitoring

This article explains how smart-socket manages connections through AioSession objects, a detailed session state machine, state event listeners, built‑in MonitorPlugin for real‑time statistics, custom plugins for connection limiting and blacklisting, session attribute handling, and network monitoring via NetMonitor, concluding with best‑practice recommendations.

Javaconnection-managementmonitoring
0 likes · 12 min read
Smart-Socket Connection Management: Session Lifecycle, Limits, and Quality Monitoring
Three Knives
Three Knives
Nov 17, 2025 · Backend Development

Deep Dive into smart-socket’s Memory Pool: Boosting Network Performance

This article provides a detailed analysis of smart-socket’s memory‑pool mechanism, covering its core classes (BufferPagePool, BufferPage, VirtualBuffer), allocation strategies, configuration tips, code examples, best‑practice recommendations, and the performance benefits such as reduced GC pressure and higher allocation efficiency.

BufferPagePoolGC reductionJava NIO
0 likes · 10 min read
Deep Dive into smart-socket’s Memory Pool: Boosting Network Performance
Three Knives
Three Knives
Nov 16, 2025 · Backend Development

Chapter 7: Understanding the MessageProcessor Mechanism in smart‑socket

This article explains the core MessageProcessor interface of the smart‑socket framework, detailing its process and stateEvent methods, the associated StateMachineEnum events, example implementations for echo and business logic servers, and recommended best‑practice guidelines for robust message handling.

JavaMessageProcessorState Machine
0 likes · 8 min read
Chapter 7: Understanding the MessageProcessor Mechanism in smart‑socket
Three Knives
Three Knives
Nov 15, 2025 · Backend Development

Designing Complex Protocols: String & JSON Implementations with Large Message Handling

This chapter provides a detailed analysis of designing complex communication protocols, covering the StringProtocol format, a JSON-based protocol integrated with FastJSON, and strategies for efficiently handling large message bodies using session attachment and decoder state management, complete with code examples and best‑practice recommendations.

FastJSONJavalarge message handling
0 likes · 12 min read
Designing Complex Protocols: String & JSON Implementations with Large Message Handling