简体   繁体   中英

Simple proxy in Java

I want to build a simple proxy (127.0.0.3:1234) to transfer my database connections from my app to specific database servers (127.0.0.1:1234 and 127.0.0.2:1234). Is that possible in Java? I'm worry about the persistence connections between dbs and application...

If you want a proxy to load balance between two TCP connection, that is relatively simple. I suggest you try it and post a question when you run into an issue.

I'm worry about the persistence connections between dbs and application...

You don't need to worry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM