OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Design Pattern AWS Batch calling a REST endpoint using cron

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Guest
I am inexperienced with AWS, so if this is a basic question please excuse my lack of knowledge here.

This question is an architectural question.

I have set up the following on AWS so far which is working as expected. However, the part that is missing is the "Cron" (every 24 hrs) that needs to call a REST GET endpoint on the expiry-service.

I was looking at AWS Batch to run a job to call this endpoint. However, I don't see where to:

  1. Set a schedule
  2. How to get the job to invoke the REST endpoint

Question

Is AWS Batch the correct service to use? If so, how do I achieve the above to goals? Do I also need to use AWS API Gateway?

enter image description here

UPDATE

  1. I can use Amazon Event Bridge to schedule a cron to trigger a job.
  2. Need to work out how to get the job to call the REST endpoint.
<p>I am inexperienced with AWS, so if this is a basic question please excuse my lack of knowledge here.</p>
<p>This question is an architectural question.</p>
<p>I have set up the following on AWS so far which is working as expected. However, the part that is missing is the "Cron" (every 24 hrs) that needs to call a <strong>REST GET endpoint</strong> on the <code>expiry-service</code>.</p>
<p>I was looking at <code>AWS Batch</code> to run a job to call this endpoint. However, I don't see where to:</p>
<ol>
<li>Set a schedule</li>
<li>How to get the job to invoke the REST endpoint</li>
</ol>
<p>Question</p>
<p>Is <code>AWS Batch</code> the correct service to use? If so, how do I achieve the above to goals? Do I also need to use <code>AWS API Gateway</code>?</p>
<p><a href="https://i.sstatic.net/MBnvlpBW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/MBnvlpBW.png" alt="enter image description here" /></a></p>
<p>UPDATE</p>
<ol>
<li>I can use <code>Amazon Event Bridge</code> to schedule a cron to trigger a job.</li>
<li>Need to work out how to get the job to call the REST endpoint.</li>
</ol>
Continue reading...
 

Latest posts

Top