{"id":20976559,"url":"https://github.com/talakb/aws-lambda-java-sdk-examples","last_synced_at":"2025-09-02T06:40:22.776Z","repository":{"id":37990692,"uuid":"485427452","full_name":"talakb/aws-lambda-java-sdk-examples","owner":"talakb","description":"AWS Lambda Java SDK examples for testing Lambda integration with other AWS services. Examples include synchronous (RequestResponse), asynchronous (Event), and stream processing approaches.","archived":false,"fork":false,"pushed_at":"2022-09-05T08:42:09.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T09:22:44.162Z","etag":null,"topics":["api-gateway","aws","aws-lambda","lambda","serverless"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talakb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-25T15:27:25.000Z","updated_at":"2023-05-09T20:19:48.000Z","dependencies_parsed_at":"2023-01-17T17:15:11.894Z","dependency_job_id":null,"html_url":"https://github.com/talakb/aws-lambda-java-sdk-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/talakb/aws-lambda-java-sdk-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talakb%2Faws-lambda-java-sdk-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talakb%2Faws-lambda-java-sdk-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talakb%2Faws-lambda-java-sdk-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talakb%2Faws-lambda-java-sdk-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talakb","download_url":"https://codeload.github.com/talakb/aws-lambda-java-sdk-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talakb%2Faws-lambda-java-sdk-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273244305,"owners_count":25070958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","aws","aws-lambda","lambda","serverless"],"created_at":"2024-11-19T04:54:34.363Z","updated_at":"2025-09-02T06:40:22.749Z","avatar_url":"https://github.com/talakb.png","language":"Java","readme":"# AWS Lambda Java SDK examples.\n \n## 1 -   Synchronous (RequestResponse) Handler\n\n\n ### Serverless weather API\n\n* A simple example with CRUD operation to accept request via API Gateway and interact with DynamoDB backend table. AWS services used:\n  -  API Gateway\n     - Lambda authorizer function is used to authentcate request using a token passed from API Gateway.\n     - The authorizer function evaluates incoming toekn and returns allow or deny security policy back to API Gateway.\n     - If 'allow' return policy is returned from the authorizer function, API Gateway forward the request to a lambda function based on the request resource and method.\n  -  Lambda\n  -  DynamoDB\n  \n![WeatherAPI-Serverless-Example drawio](https://user-images.githubusercontent.com/5312958/173243136-610cbb94-c816-4ac7-9306-fddd30c16fb1.png)\n\n\n ## 2 -   Asynchronous (Event) Handler\n \n* Client will receive 202-Accepted response but not the actual response detail of a function logic. Once processing gets completed, response payload will be sent to a destination:\n  - SNS topic\n  - SQS queue\n  - Lambda function\n  - EventBridge event bus\n  - Kinesis or DynamoDB stream\n \n * Destinations  needs to be configured in the Lambda function config. in AWS Console or using Lambda API.\n  \n ### Send response to a queue (SQS and DLQ)\n  \n\n![aws-java-sdk-examples-ambda-GreetingAsync](https://user-images.githubusercontent.com/5312958/166472905-f97aaf7d-a08f-43b5-a26a-18eb6bcdf9ba.svg)\n\n ## 3 -   Stream Processing Handler (TODO)\n \n * The event trigger will be DynamoDB stream (events from CRUD operations on an item).\n * Lambda function logic receives the stream event from DynamoDB and executes additional logic. The response can be sent to a destination, if needed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalakb%2Faws-lambda-java-sdk-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalakb%2Faws-lambda-java-sdk-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalakb%2Faws-lambda-java-sdk-examples/lists"}