简体   繁体   English

Java中的简单代理

[英]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). 我想构建一个简单的代理(127.0.0.3:1234),将数据库连接从我的应用程序转移到特定的数据库服务器(127.0.0.1:1234和127.0.0.2:1234)。 Is that possible in Java? 在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. 如果要代理在两个TCP连接之间进行负载平衡,则相对简单。 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. 不用担心

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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