amazon web services - AWS - Is there a more efficient way to call another lambda from within a lambda method? -


aws lambda - java allows 1 event notification per s3 bucket put.

so in order simulate 2 events, send event forwarder invokes 2 other lambdas. in order handoff successful, have wait on result, "invokeresult result1 = resultfuture1.get();"

this means forwarder has wait until completion of other lambdas ( , incur billing timing cost of other lambdas ). there better way?

public class forwarder     public string runsingleconvert(s3mkvbucketinformation bucketinformation, context context) {         awslambdaasyncclient client = new awslambdaasyncclient();         invokerequest request1 = new invokerequest();             request1.setfunctionname("receiver1");         request1.setpayload(tobytebuffer(bucket, key));         future<invokeresult> resultfuture1 = client.invokeasync(request1);         invokeresult result1 = resultfuture1.get();          invokerequest request2 = new invokerequest();             request2.setfunctionname("receiver2");         request2.setpayload(tobytebuffer(bucket, key));         future<invokeresult> resultfuture2 = client.invokeasync(request2);         invokeresult result2 = resultfuture2.get(); 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -