I have two lambda function and both written in Java. Assume A & B.. When A function got successfully executed then I want B function to be executed after 24 hours. Is it possible to achieve? If yes how?
Schedule Lambda from another Lambda
71 views Asked by Roopchand At
2
There are 2 answers
0
Miguel Conde
On
Your lambda A can publish a message in SQS, then your lambda B can be executed each one hour (using Cloudwatch event bridge) and reading the messages in the SQS queue, if a message is detected and have 24 hours published you can continue with the execution of the lambda B and delete the message from SQS.
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in AWS-LAMBDA
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- Golang lambda upload image into s3 static website
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Call an External API from AWS Lambda
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Trouble Extracting Request Body in Flask-Lambda Application Deployed on AWS Lambda via AWS SAM
- S3 pre-signed url not working on whatsapp cloud Api
- 'Load failed' error when trying to create a function in AWS lambda
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- AWS WebSocket API return forbidden (403) error when sending message
- Pass integer value in json serializable Python Object
- AWS Lambda successfully called with 'Function URL', but not with 'API Gateway'
- How do I create a *clean* AWS lambda function in python?
- Laravel Vapor Queue Dynamic DB Connection Issue for Different Requests
Related Questions in AWS-LAMBDA-LAYERS
- AWS Lambda Layer import Tuya Connector
- Importing existing lambda layers into terraform
- Mocking a lambda layer library for unit testing fails in jest
- Unable to import module 'lambda function': libldap_r-2.4.so.2 cannot open shared objectfile: No such file or directory
- Webpack encrypted lamdba layer code is not working
- AWS lambda layer code import throwing error while I trying to deploy nodejs serverless project
- Lambda Layers Nodejs and Typescript
- how to add layer of awswrangular in the aws lambda layers, awsdatawrangular not there the list of layers?
- Unable to import module 'lambda_function': No module named 'Crypto'
- Importing the OpenAI Python dependency into AWS Lambda fails
- Seemingly unrelated 'rpds.rpds' error when importing Python library onto AWS Lambda
- Why is a python aws lambda with a lambda layer containing scikit-learn and pandas failing with `error importing numpy`?
- Unable to import psycopg2 from AWS Lambda Layer due to problem with _psycopg module
- AWS Lambda Layer - Signature Expired Error (for a 5MB upload)
- How to install aws-wsgi and Flask in AWS Lambda?
Related Questions in AWS-LAMBDA-CONTAINERS
- AttributeError: 'NoneType' object has no attribute 'split' with Python Selenium in AWS Lambda
- Getting "ExceptionInInitializerError " while running AWS Lambda using "aws-serverless-java-container" within my Lambda handler
- Are AWS Lambda containers reused for different lambda functions?
- How to create Lambda Docker Image from a non AWS base image?
- Lambda cannot location module: No module named 'runner'
- Getting error that files written to directory in /tmp (within Dockerfile) do not exist while running AWS Lambda with container image from ECR
- Is there an Azure DevOps task to automatically deploy a new AWS Lambda *docker image*?
- ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory. Issue with importing ultralytics YoloV8
- Trivial GO lambda in IMAGE fails with /bin/sh: ./lambda-handler: Permission denied
- Implementing ADOT for embedded metrics in AWS Lambda containers - any guidance?
- Do containers in Lambda container functions have access to all of the memory/cpu the lambda function has access to by default?
- Schedule Lambda from another Lambda
- An error occurred while installing bson (4.15.0), and Bundler cannot continue. When using public.ecr.aws/lambda/ruby:latest Docker
- bash script: if condition not working as expected on AWS lambda container image
- AWS Lambda container image gives error but Runtime Interface Emulator ran correctly
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There are multiple ways to achieve this using AWS resources. Here are a few options that can be implemented easily:
Step Functions: In Step Functions, you can utilize the Wait state to control the transition of messages from one Lambda function to another. By configuring appropriate wait times, you can achieve the desired delay between the execution of Lambda function A and Lambda function B.
SQS: Another approach is to trigger Lambda function B using SQS messages. However, note that the maximum visibility timeout for SQS is limited to 12 hours. To achieve a 24-hour window, you can enable the retry functionality on the SQS. However, in order to trigger the retries, you would need to configure Lambda function B to throw an exception during the first attempt of processing the messages from the SQS queue. This will signal to SQS that the message processing should be retried.