Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A TCP Proxy Sever that can pool remote connections

License

NotificationsYou must be signed in to change notification settings

Hexaville/hexaville-tcp-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A TCP Proxy Sever that can pool remote connections

Strategy

hexaville-tcp-proxy-server is aimed to develop to prevent enormous number of connections between middleware and functions(serverlessexecution unit. such as lambda) when building web applications using serverless computing.

            +-----------+   tcpclient ---- | functions | ------------+                                        +-----------+             |                                    pooled tcp                                                               +------------------------------------+  connections  +--------------+                                   |                                    | ------------- |              |            +-----------+   tcp    |                                    |               |              | client ---- | functions | -------- | hexaville-tcp-proxy-server-cluster | ------------- |   DataBase   |            +-----------+          |                                    |               |              |                                   |                                    | ------------- |              |                                   +------------------------------------+               +--------------+            +-----------+   tcp       |client ---- | functions |-------------+            +-----------+

Installation

npm i hexaville-tcp-proxy-server

Usage

Listening up Proxy Server with remote connections pooling.

constProxyServer=require('hexaville-tcp-proxy-server');constproxy=newProxyServer({remoteHost:'localhost',remotePort:3306,pool:{default:10,min:3,max:10}});proxy.listen(3000);

Client

yourMysqlClient.connect("host.com",3306,"foo_database");yourMysqlClient.query("select * from foo where id = 1").then((data)=>{console.log(data);});

About

A TCP Proxy Sever that can pool remote connections

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp