Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make EC2 instance call another instance?
    text
    copied!<p>I have two EC2 instances. I want that if one finish a job, it will sign the other one to do other stuff.<br> So, how to make the communication? I don't want to use CURL.. coz it seems like expensive. I think AWS should have some simple solution but I still can't find relevant help in the documentation. </p> <p>:(</p> <p>also, how to send data between two instances without giong through SSH in a fast way? I know ssh can be done. but it seems slow. once again, any tool that EC2 provide to do that? </p> <hr> <p>Actually, I need two methods:</p> <p>1) Instance A tells Instance B to grab the data from Instance A.</p> <ul> <li>This is answered by Adrian that I can use SQS. I will try that. </li> </ul> <p>2) Once Instance B get the signal, then the data (EBS) data in Instance A needs to transfer to Instance B. The amount of data can be big even I zip it. It is around 50 MB. And I need Instance B to get the data fast so that Instance B will have enough time to process the data before next interval comes in. </p> <p>So, I am thinking of either these methods:</p> <p>a) Instance A has the data dump from DB, upload to S3. Then signal Instance B. Instance B gets the data from S3. </p> <p>b) Instance A has the data dump from DB. Then signal Instance B. Instance B establish SSH (or any connection) to Instance A and grabs the data.</p> <p>The data may need to be stored permanently but it is not a concern at this moment. It is mainly for Instance B to process. </p> <p>This is a simple scenario. I'm thinking of what if I scale it with multiple instances, what the proper approach is. :)</p> <p>Thanks. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload