views:

34

answers:

1

I am currently writing a black box trading bot and I am in the process of designing the way data is passed around. I realize I want an async sort of architecture. So I have been implementing ActionListeners and ActionPerformers but some of the listeners when they get data need to do calculation which could take a while, so I am wondering if there is an efficient framework that allows me to program async easily and effectively in the most real time way possible.

I basically have two questions: Best way to do async sockets and communication throughout a program Best programming language or framework to write realtime applications

A: 

I would use multiple threads rather than multiplexed I/O. Java has very strong support for multithreading. Read Brian Goetz's book "Java Concurrency in Practice".

Steve Emmerson