PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10528390

Idempotent task execution in on-demand network code execution systems

Granted 2020-01-07 · Filed 2018-08-27 · Application 16/113,887 · Utility · Kind B2 · Prior publication US 2019/0205171 A1, 2019-07-04

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Marc John Brooker, Seattle, WA (US); Timothy Allen Wagner, Seattle, WA (US); Ajay Nair, Seattle, WA (US)
CPC, current
G06F9/5005; G06F9/445

Abstract

Systems and methods are described for handling requests to execute idempotent code in an on-demand code execution system or other distributed code execution environment. Idempotent code can generally include code that produces the same outcome even when executed multiple times, so long as dependencies for the code are in the same state as during a prior execution. Due to this feature, multiple executions of idempotent code may inefficiently use computing resources, particularly in on-demand code execution system (which may require, for example, generation and provisioning of an appropriate execution environment for the code). Aspects of the present disclosure enable the on-demand code execution system to process requests to execute code by verifying whether dependency states associated with the code have changed since a prior execution. If dependency states have not changed, no execution need occur, and the overall computing resource us of the on-demand code execution system is decreased.

Claims

21 claims · independent 1, 8 and 16

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A computer-implemented method comprising:

  1. Claim 1, element e1obtaining a first request to cause execution of a task, 45–99
  2. Claim 1, element e2wherein the task is associated with code executable by an on-demand code execution system to implement functionality corresponding to the task, and wherein execution of the task is dependent on a set of resources; 101–313
  3. Claim 1, element e3generating an execution environment for the task on the on-demand code execution system at least partly by provisioning the execution environment with the code; 315–474
  4. Claim 1, element e4initiating a first execution of the task at least partly by executing the code within the execution environment; 476–587
  5. Claim 1, element e5determining states of respective resources, within the set of resources, at a time of the first execution of the task; 589–706
  6. Claim 1, element e6obtaining a second request to cause execution of the task; 708–765
  7. Claim 1, element e7for individual resources of the set of resources, comparing updated current states of the individual resources and the states of the respective resources at the time of the first execution of the task to determine that the current states of the individual resources match the states of the respective resources at the time of the first execution of the task; and 767–1124
  8. Claim 1, element e8declining to initiate a second execution of the task in response to the second request.1130–1216
6 dependent claims: 2 to 7 (2, 4, 5, 6 on claim 1; 3 on 2; 7 on 6)

Claim 2

Depends on claim 1.

2. The computer-implemented method of claim 1 further comprising:

  1. Claim 2, element e1obtaining a third request to cause execution of the task; 66–122
  2. Claim 2, element e2for individual resources of the set of resources, comparing current states of the individual resources at a time of the third request and the states of the respective resources at the time of the first execution of the task to determine that a current state of at least one resource, from the set of resources, does not match the state of the at least one resource at the time of the first execution; and 124–523
  3. Claim 2, element e3executing the code to implement functionality corresponding to the task.529–600

Claim 3

Depends on claim 2.

3. The computer-implemented method of claim 2 , wherein

  1. Claim 3, element e1the third request occurs prior to the second request.56–108

Claim 4

Depends on claim 1.

4. The computer-implemented method of claim 1 further comprising:

  1. Claim 4, element e1obtaining a result of the first execution of the task; and 66–119
  2. Claim 4, element e2returning the result as a result of the request to cause the second execution of the task.125–214

Claim 5

Depends on claim 1.

5. The computer-implemented method of claim 1 , wherein

  1. Claim 5, element e1the set of resources include at least one of the code associated with the task, a resource referenced by a parameter passed within the request, or a resource referenced by the code associated with the task.56–261

Claim 6

Depends on claim 1.

6. The computer-implemented method of claim 1 further comprising

  1. Claim 6, element e1generating an execution record for the task indicating the states of the respect resources within the set of resources at the time of the first execution, 65–218
  2. Claim 6, element e2wherein determining the states of the respective resources at the time of the first execution comprises obtaining the states of the respective resources from the execution record.220–398

Claim 7

Depends on claim 6.

7. The computer-implemented method of claim 6 , wherein

  1. Claim 7, element e1the execution record for the task indicates the states of the respective resources at each of a set of prior executions of the task, and wherein the computer-implemented method further comprises identifying the first execution from the set of prior executions.56–315

Claim 8

Independent claim.

8. A system comprising:

  1. Claim 8, element e1a data store including computer-executable instructions; and 24–79
  2. Claim 8, element e2a physical processor configured to execute the computer-executable instructions, 85–164
  3. Claim 8, element e3wherein execution of the computer-executable instructions causes the system to: 166–244
  4. Claim 8, element e4obtain a first request to cause execution of a task, 246–297
  5. Claim 8, element e5wherein the task is associated with code executable by an on-demand code execution system to implement functionality corresponding to the task, and wherein execution of the task is dependent on at least one resource; 299–514
  6. Claim 8, element e6generate an execution environment for the task on the on-demand code execution system at least partly by provisioning the execution environment with the code; 516–673
  7. Claim 8, element e7initiate a first execution of the task at least partly by executing the code within the execution environment; 675–784
  8. Claim 8, element e8determine a state of the at least one resource at a time of the first execution of the task; 786–877
  9. Claim 8, element e9obtain a second request to cause execution of the task; 879–933
  10. Claim 8, element e10determine that a current state of the at least one resource matches the state of the at least one resource at the time of the first execution; and 935–1076
  11. Claim 8, element e11end processing of the second request to cause execution of the task without initiating a second execution of the task.1082–1199
7 dependent claims: 9 to 15 (9, 10, 11, 12, 13, 14, 15 on claim 8)

Claim 9

Depends on claim 8.

9. The system of claim 8 , wherein

  1. Claim 9, element e1the at least one resource corresponds to a plurality of resources, and wherein determining that the current state of the at least one resource matches the state of the at least one resource at the time of the first execution comprises determining that the current state of every individual resource within the plurality of resources matches a state of the respective individual resource at the time of the first execution.35–456

Claim 10

Depends on claim 8.

10. The system of claim 8 , wherein

  1. Claim 10, element e1execution of the computer-executable instructions further causes the system to: 36–114
  2. Claim 10, element e2obtain a third request to cause execution of the task; 116–169
  3. Claim 10, element e3determine that the current state of the at least one resource does not match the state of the at least one resource at the time of the first execution; and 171–321
  4. Claim 10, element e4execute the code to implement functionality corresponding to the task.327–396

Claim 11

Depends on claim 8.

11. The system of claim 8 , wherein

  1. Claim 11, element e1the at least one resource corresponds to a plurality of resources, and wherein determining that the current state of the at least one resource does not match the state of the at least one resource at the time of the first execution comprises determining that any individual resource within the plurality of resources does not match a state of the individual resource at the time of the first execution.36–437

Claim 12

Depends on claim 8.

12. The system of claim 8 , wherein

  1. Claim 12, element e1execution of the computer-executable instructions further causes the system to return an indication that the second request to execute the task is satisfied without execution of the code.36–222

Claim 13

Depends on claim 8.

13. The system of claim 8 , wherein

  1. Claim 13, element e1execution of the computer-executable instructions further causes the system to identify the at least one resource based at least partly on at least one of static or dynamic analysis of the code associated with the task.36–254

Claim 14

Depends on claim 8.

14. The system of claim 8 , wherein

  1. Claim 14, element e1execution of the computer-executable instructions further causes the system to generate an execution record for the task indicating a state of the at least one resource at the time of the first execution, and wherein determining the state of the at least one resource at the time of the first execution comprises obtaining the state of the at least one resource from the execution record.36–423

Claim 15

Depends on claim 8.

15. The system of claim 8 , wherein

  1. Claim 15, element e1the execution record for the task indicates the states of the at least one resource at each of a set of prior executions of the task, and wherein execution of the computer-executable instructions further causes the system to identify the first execution from the set of prior executions.36–322

Claim 16

Independent claim.

16. Non-transitory computer-readable media comprising

  1. Claim 16, element e1computer-executable instructions that, when executed, cause a system to: 54–125
  2. Claim 16, element e2obtain a first request to cause execution of a task, 127–178
  3. Claim 16, element e3wherein the task is associated with code executable by an on-demand code execution system to implement functionality corresponding to the task, and wherein execution of the task is dependent on at least one resource; 180–395
  4. Claim 16, element e4generate an execution environment for the task on the on-demand code execution system at least partly by provisioning the execution environment with the code; 397–554
  5. Claim 16, element e5initiate a first execution of the task at least partly by executing the code within the execution environment; 556–665
  6. Claim 16, element e6determine a state of the at least one resource at a time of the first execution of the task; 667–758
  7. Claim 16, element e7obtain a second request to cause execution of the task; 760–814
  8. Claim 16, element e8determine that a current state of the at least one resource matches the state of the at least one resource at the time of the first execution; and 816–957
  9. Claim 16, element e9end processing of the second request to cause execution of the task without initiating a second execution of the task.963–1080
5 dependent claims: 17 to 21 (17, 18, 19, 20, 21 on claim 16)

Claim 17

Depends on claim 16.

17. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 17, element e1the first execution is a most recent execution of the task prior to the second request.69–155

Claim 18

Depends on claim 16.

18. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 18, element e1the computer-executable instructions, when executed, further cause a system to: 69–147
  2. Claim 18, element e2obtain a third request to cause execution of the task; 149–202
  3. Claim 18, element e3determine that the current state of the at least one resource does not match the state of the at least one resource at the time of the first execution; and 204–354
  4. Claim 18, element e4initiate a second execution of the code to implement functionality corresponding to the task.360–452

Claim 19

Depends on claim 16.

19. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 19, element e1the second request occurs subsequent to the second execution.69–129

Claim 20

Depends on claim 16.

20. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 20, element e1the at least one resource corresponds to a plurality of resources, and wherein, to determine that the current state of the at least one resource matches the state of the at least one resource at the time of the first execution, execution of the computer-executable instructions further causes the system to determine that the current state of every individual resource within the plurality of resources matches a state of the respective individual resource at the time of the first execution.69–560

Claim 21

Depends on claim 16.

21. The non-transitory computer-readable media of claim 16 , wherein

  1. Claim 21, element e1the at least one resource corresponds to a plurality of resources, and wherein, to determine that the current state of the at least one resource does not match the state of the at least one resource at the time of the first execution, execution of the computer-executable instructions further causes the system to determine that any individual resource within the plurality of resources does not match a state of the individual resource at the time of the first execution.69–540

Status

active

As of 2026-11-17, the USPTO record for US 10528390 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record, leaving out a terminal disclaimer it shows without a date, is 2036-09-23 (20 years from the filing of a parent application on 2016-09-23), a date not yet passed; that disclaimer can only make the term end earlier (data version 20261117.2).

Basis
term_20y · terminal_disclaimer (20 years from the filing of a parent application on 2016-09-23, a terminal disclaimer on record without a date, which can only make the term end earlier than the date computed from the other dates)
Term end
2036-09-23 Computed from the dates in the USPTO recordThis date leaves out a terminal disclaimer on record that has no date; that disclaimer can only make the term end earlier.
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 110 US patent documents · Cited by: 69 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10528390/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10528390",
 "status": "active",
 "basis": [
  "term_20y",
  "terminal_disclaimer"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2036-09-23",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10528390?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10528390?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10528390/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10528390",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10528390?v=20261117.2

Data 20261117.2 · as of 2026-11-17