Implementing Netty with Protobuf in Spring Boot Applications
Protobuf Integration with Netty
Protocol Buffers Overview
Protocol Buffers (Protobuf) is Google's language-neutral, platform-neutral mechanism for serializing structured data. It's more efficient than XML for data exchange due to its binary format. The protocol supports various languages including Java, C++, C#, Go, and Python. This makes it ...
Posted on Sun, 10 May 2026 23:51:22 +0000 by EZE
Implementing Plugin Architecture in Spring Boot Applications
Java Plugin Implementation Approaches
ServiceLoader Mechanism
Java's ServiceLoader provides a standard SPI implementation. Define an interface with multiple implementations, then load them dynamically:
public interface NotificationService {
void sendAlert(String message);
}
public class EmailNotifier implements NotificationService {
@O ...
Posted on Sun, 10 May 2026 19:39:54 +0000 by dt_gry
Implementing Rate Limiting and Counters with Redis
Redis provides efficient counting capabilities suitable for rate limiting and access tracking. Common use cases enclude blog view counters and SMS verification code frequency limits.
Basic counters face challenges like preventing refresh-triggered increments. The solution involves tracking user access within specific time windows and storing da ...
Posted on Sun, 10 May 2026 17:33:56 +0000 by helpmeplease1234
Spring Boot Static Resource Configuration and Deployment Packaging
Static Resource Configuration
Configure static resource locations in application.yml:
spring:
resources:
static-locations: classpath:/static/
WAR Package Deployment
To package as WAR file, update pom.xml packaging type:
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<group ...
Posted on Sun, 10 May 2026 16:32:22 +0000 by Noctule
University Club Management System: Full-Stack Architecture with Spring Boot and Vue.js
Technical Stack Overview
The backend leverages Spring Boot's auto-configuration capabilities, eliminating manual server setup through embedded Tomcat integration. This framework provides production-ready features including dependency injection, transaction management, and seamless integration with Spring Security and Spring Data ecosystems. The ...
Posted on Sun, 10 May 2026 13:19:37 +0000 by edwardp
Building a Netty-Based Data Forwarding Service in Spring Boot
Environment: Windows 10, JDK 17, Spring Boot 3
Introduction to Netty
Nety is an asynchronous, event-driven network application framework for Java that simplifies the development of high-performance, reliible network servers and clients. It supports multiple protocols including TCP, UDP, and HTTP, and abstracts low-level networking complexities ...
Posted on Sun, 10 May 2026 00:41:50 +0000 by gregor63
Implementing JWT Refresh Tokens in Spring Boot Applications
Securing stateless REST APIs relies heavily on short-lived access tokens paired with longer-lived refresh credentials. This pattern prevents frequent re-authentication while limiting exposure from compromised tokens. Below is a practical implementation of this mechanism using Spring Boot, Spring Security, and the JJWT library.
Core Dependencies ...
Posted on Sat, 09 May 2026 22:48:40 +0000 by themire
Enforcing Multi-Device Login Limits with Spring Boot and Netty
Configuration Parameters
Define the maximum number of concurrent connections per user and the WebSocket endpoint in application.yml:
netty:
port: 8082
maxDevices: 2
path: /ws
A @ConfigurationProperties class binds these values:
@ConfigurationProperties(prefix = "netty")
@Component
public class NettyProperties {
private int ...
Posted on Sat, 09 May 2026 22:12:21 +0000 by yellowepi
Integrating Redis with Spring Boot for Caching, Lua Scripting, and Session Sharing
Integrating Redis as a Cache in Spring Boot
To use Redis as a caching layer in Spring Boot, include the spring-boot-starter-cache and spring-boot-starter-data-redis dependencies. Spring Boot auto-configures a RedisTemplate and, when caching is enabled, a RedisCacheManager.
Required Dependencies
<dependency>
<groupId>org.springfr ...
Posted on Sat, 09 May 2026 21:29:26 +0000 by katlis
Developing a Collaborative Educational Platform for Medical Students with Spring Boot and Vue
Digital Transformation in Medical EducationThe integration of modern web technologies into medical education has fundamentally shifted how students access resources and interact with peers. Traditional learning methods lacked the flexibility and interactive coordination required for complex medical studies. By transitioning to a digitally coord ...
Posted on Sat, 09 May 2026 19:57:06 +0000 by pkSML