GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - YiYeHuang/NettyMessageFramework: A basic Netty implementation for solving TCP sticky packet. Using PostgresSQL wire protocol as an example.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
src/main/java
src/main/java
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

NettyMeesageFramework - PostgresSQL example

Intention

A while ago, I was doing a JDBC connector project that can connect to PostgresSQL DB. This is a challenge task as there were just no third party SDK for connecting to PostgresSQL DB server. So the implementation had to begin with raw wire protocol and nasty buffer reading. I was very quickly running into TCP sticky packet issue. At that time, Java Nio framework was used for this project. This repo is a simulation of PostgresSQL server/client with basic: Auth, Query and Disconnect request/response. But at this time, I refresh the implementation with Netty.

PostgresSQL Wire Protocol Example

Reading

Implementation

The core of the implementation is Netty's powerful ChannelHander. This is a registration based list that will guide your business logic through the information streaming. The basic process is

                                      -----------------ChannelHander-----------------
  client --- request ---> server --- | decode | process1 | process2 | encode | send | ---response---> client
                                      -----------------------------------------------

Netty's EventLoop also provides strong ability for Non-Blcoking I/O. It split the request receiving/processing/sending. This makes Reactor programming mode possible

About

A basic Netty implementation for solving TCP sticky packet. Using PostgresSQL wire protocol as an example.

Topics

nettypostgresqltcp-protocolwire-protocol

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.