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

Extract LambdaApp interface #2794

Merged
merged 9 commits into from
Jan 6, 2025
Merged

Extract LambdaApp interface #2794

merged 9 commits into from
Jan 6, 2025

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Dec 19, 2024

What does this change?

This change extracts an interface for scala lambda apps, into a trait LambdaApp that implements configuration and the lambda request handler interface, requiring consumers to implement the following functions:

  • def processEvent(in: In): Future[Out]: Take some event (likely SQSEvent) and convert it to a Future of some output
  • def build(rawConfig: Config): MyAppConfig: Convert typesafe config to internal app config

How to test

  • Run the tests, do they pass?

How can we measure success?

Easier to implement lambda apps elsewhere!

Have we considered potential risks?

This change should be a functional no-op.

@kenoir kenoir force-pushed the rk/extract-lambda-interface branch from cca21a4 to 28a7b91 Compare December 19, 2024 13:44
@kenoir kenoir force-pushed the rk/extract-lambda-interface branch from 28a7b91 to 14a47a4 Compare December 19, 2024 13:45
@kenoir kenoir marked this pull request as ready for review December 19, 2024 13:47
@kenoir kenoir requested a review from a team as a code owner December 19, 2024 13:47
Base automatically changed from rk/go-full-config to main January 6, 2025 10:56
@kenoir kenoir merged commit c55ad24 into main Jan 6, 2025
5 checks passed
@kenoir kenoir deleted the rk/extract-lambda-interface branch January 6, 2025 11:13
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.

3 participants