I'm using Java to create EC2 instances from within Eclipse. Now I would like to push parts of the application to these instances so that these can process whatever needs processing and then send the results back to my machine.
What I'm trying to do is something along the lines of:
assignWork(){ workPerformed = workQueue; workPerInstance = workQueue/numberOfInstances; while(workQueue > 0){ netxInstance.doWork(workPerformed,workPerInstance); workPerformer -= workPerInstance; } } doWork(start, end){ while(start>end){ //process stuff start--; } } This way I could control exactly how many AMI's to instantiates depending on the volume of work at hand. I could instantiate them, send them specific code to process and then terminate them as soon as I receive the results.
Is this possible just using the AWS JDK?