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

Open
wants to merge 2 commits into
base: rk/go-full-config
Choose a base branch
from

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
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.

1 participant