# Unique Execution Id for Idempotency?

**URL:** <https://forum.serverless.com/t/unique-execution-id-for-idempotency/18178>\
**Category:** Serverless Framework\
**Tags:** aws, dynamodb\
**Created:** [January 11, 2023, 3:38am UTC](https://forum.serverless.com/t/unique-execution-id-for-idempotency/18178 "2023-01-11T03:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noaoh](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/noaoh/32/7238_2.png) [@noaoh](https://forum.serverless.com/u/noaoh)\
**Post date:** [January 11, 2023, 3:38am UTC](https://forum.serverless.com/t/unique-execution-id-for-idempotency/18178/1 "2023-01-11T03:38:56Z")

</div>

Hello there!

I have a NodeJS function scheduled as a cron job that has been executing multiple times. I learned recently that serverless functions should be idempotent. My question is if there’s some sort of id that’s shared across multiple executions if they’re trying to execute a function at a certain time. I have assumed that the awsRequestId from the context parameter is shared across multiple executions, but I wanted to confirm that assumption. Today I integrated my AWS account with a observability dashboard called Kloudmate and from what I can see from that, there is an id called “executionId” which is shared across multiple executions. If awsRequestId isn’t that, is there a way I can access this “executionId” to use it for idempotency purposes?

Thanks!

---

<div class="post-metadata">

**Author:** ![noaoh](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/noaoh/32/7238_2.png) [@noaoh](https://forum.serverless.com/u/noaoh)\
**Post date:** [January 12, 2023, 12:13am UTC](https://forum.serverless.com/t/unique-execution-id-for-idempotency/18178/2 "2023-01-12T00:13:23Z")

</div>

Looks like awsRequestId and executionId are the same thing. So you can use the awsRequestId as an idempotency id for a cron job.
