Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reuse AsyncInitializationWrapper in SpringDelegatingLambdaContainerHandler #883

Merged
merged 1 commit into from May 16, 2024

Conversation

deki
Copy link
Collaborator

@deki deki commented May 7, 2024

Issue #, if available:
#758

Description of changes:
Did some testing with this app https://github.com/aws-samples/aws-lambda-java-workshop/tree/main/labs/unicorn-store/software/unicorn-store-spring and 512 MB memory.
Comparison between
old StreamLambdaHandler implementation: Duration: 648.79 ms Billed Duration: 649 ms Memory Size: 1024 MB Max Memory Used: 333 MB Init Duration: 9747.09 ms
and
new SpringDelegatingLambdaContainerHandler Duration: 16626.82 ms Billed Duration: 16627 ms Memory Size: 1024 MB Max Memory Used: 330 MB Init Duration: 1344.65 ms

With this change the init is done properly. Threading still needs to be removed from SCF.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

@deki deki requested a review from olegz May 7, 2024 16:02
@maschnetwork
Copy link
Contributor

LGTM

@olegz
Copy link
Collaborator

olegz commented May 15, 2024

LGTM as well

@deki deki merged commit 6d4210f into main May 16, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants