Skip to content

Implementation of a simple mathematical combination algorithm where the order of the elements in the grouping does not interfere with the result. The algorithm runs on the architecture of Lambda AWS functions.

Notifications You must be signed in to change notification settings

vagnerpgss/k-combination-math-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMBINATION - LAMBDA FUNCTION

Implementation of a simple mathematical combination algorithm where the order of the elements in the grouping does not interfere with the result. The algorithm runs on the architecture of Lambda AWS functions.

Requirements

Setup process

Installing dependencies

Use maven to install our dependencies and package our application into a JAR file:

cd Combination/
mvn clean package

Local deploy

Invoking function locally through local API Gateway

  1. Start the SAM local API.
  • sam build --template combination.yaml
  • sam package --output-template-file packaged.yaml --s3-bucket <some bucket name>
  • sam local start-api

If the previous command ran successfully you should now be able to hit the following local endpoint to invoke the functions rooted at http://localhost:3000/combination

Request Example:

curl --location --request POST 'http://localhost:3000/combination' \
--header 'Content-Type: application/json' \
--data-raw '{
    "p": "2",
    "n": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
}'

Bringing to the next level

Next, you can use the following resources to know more about beyond hello world samples and how others structure their Serverless applications:

About

Implementation of a simple mathematical combination algorithm where the order of the elements in the grouping does not interfere with the result. The algorithm runs on the architecture of Lambda AWS functions.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages