wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Scaling a TCP/IP based system and ensuring high availability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Scaling a TCP/IP based system and ensuring high availability" Watch "Scaling a TCP/IP based system and ensuring high availability" New topic
Author

Scaling a TCP/IP based system and ensuring high availability

aryan Sharma
Greenhorn

Joined: Oct 10, 2005
Posts: 27
Hi,

I have a TCP/IP based component which is communicating with a c++ based system. In fact it is reading raw bytes from that system and then marshaling those raw bytes in objects and storing it in the DB. This multi-threaded tcp/ip based component is in java and cold be deployed on a dual core or quad core processor (not sure if its important for my question but nevertheless a detail i am giving). Now i have a few questions:

1. How can i scale this tcp/ip based component. This component is deployed on an server and is listening on a port. In future if there's more data that is envisaged at this point that comes from the C++ system we should be able to scale this java component.

2. What about security. One thing which i can probably do is employ this communication on secure sockets or probably get encrypted data (any particular encryption that i could use here??). Any other way to take care of security?

3. There is also a requirement of high availability to be satisfied. How do i handle that? How could i possible have redundancy here?

Yes, we are working on the system architecture of a product and therefore, i was wondering if some experienced architect or designer could help me please
Nicolo Villarete
Greenhorn

Joined: Mar 20, 2012
Posts: 7

Hi,

I believe we have designed a similar system.

1. varies on your design, there are a lot of ways to do this. My suggestion is to use ApacheMina on your tcp/ip communication as framework. check out http://mina.apache.org/
I would also suggest separating your tcp-ip component(different JVM if possible) with other components in charge of , for example, marshaling/marshaling of message, this is to isolate any error that could occur on such intricate process. also you get to have the freedom on how to handle your tcp component such as auto restarting etc etc.
2. see no. 1.
3. in terms of HA, there are a lot of products in the market that can provide you HA clustering (prime cluster, oracle, red hat etc etc) implementation for each varies.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Scaling a TCP/IP based system and ensuring high availability
 
Similar Threads
Test 252: Mock exam
Java client and C server socket
Google Software Engineer , Mountain View, CA
SCEA 1.5/1.6
SCEA 5 Part 2 Objectives? (previous link removed)