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

feat(lambda): support for Provisioned Pollers #32205

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

roger-zhangg
Copy link
Member

Reason for this change

Lambda is introducing a new property in Event Sources named ProvisionedPollerConfig to set provisioned pollers that read from the event sources. When specified, it allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source.

This feature is currently supported for MSK and Self-managed Kafka event sources.

Description of changes

This new property can be opted in by setting the ProvisionedPollerConfig field while creating event sources. The example of setting ProvisionedPollerConfig for is shown below:

fn.addEventSource(new sources.ManagedKafkaEventSource(
  {
    clusterArn,
    topic: kafkaTopic,
    startingPosition: lambda.StartingPosition.TRIM_HORIZON,
    provisionedPollerConfig: {
      minimumPollers: 1,
      maximumPollers: 3,
    },
  }))

Description of how you validated changes

Have added unit test and integration test to validate the implementation

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added p2 repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK labels Nov 20, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team November 20, 2024 00:42
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.17%. Comparing base (6317a2a) to head (7c29f63).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #32205      +/-   ##
==========================================
- Coverage   77.18%   77.17%   -0.01%     
==========================================
  Files         105      105              
  Lines        7161     7169       +8     
  Branches     1312     1315       +3     
==========================================
+ Hits         5527     5533       +6     
- Misses       1454     1455       +1     
- Partials      180      181       +1     
Flag Coverage Δ
suite.unit 77.17% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
packages/aws-cdk 77.17% <ø> (-0.01%) ⬇️
---- 🚨 Try these New Features:

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 20, 2024
@xazhao xazhao added the pr/do-not-merge This PR should not be merged at this time. label Nov 20, 2024
xazhao
xazhao previously approved these changes Nov 20, 2024
@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 20, 2024
@mergify mergify bot dismissed xazhao’s stale review November 20, 2024 07:28

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 20, 2024
Copy link
Contributor

@GavinZZ GavinZZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit comments

GavinZZ
GavinZZ previously approved these changes Nov 20, 2024
@mergify mergify bot dismissed GavinZZ’s stale review November 20, 2024 22:54

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 20, 2024
@GavinZZ
Copy link
Contributor

GavinZZ commented Nov 21, 2024

@mergify update

Copy link
Contributor

mergify bot commented Nov 21, 2024

update

❌ Mergify doesn't have permission to update

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/codecov.yml without workflows permission

@mergify mergify bot dismissed GavinZZ’s stale review November 21, 2024 21:08

Pull request has been modified.

GavinZZ
GavinZZ previously approved these changes Nov 21, 2024
@xazhao xazhao removed the pr/do-not-merge This PR should not be merged at this time. label Nov 21, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 00f6e68
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

mergify bot commented Nov 21, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed GavinZZ’s stale review November 21, 2024 23:03

Pull request has been modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants