百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

powertools-lambda-dotnet

> DevOps
开源

Powertools 是一个开发者工具包,用于实施无服务器最佳实践并提高开发人员的工作效率。

180 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Powertools 是一个开发者工具包,用于实施无服务器最佳实践并提高开发人员的工作效率。

Powertools for AWS Lambda (.NET)

Powertools for AWS Lambda (.NET) is a developer toolkit to implement Serverless best practices and increase developer velocity.

Also available in Java, Typescript, and Python.

Documentation | NuGet | Roadmap | Examples

Join us on the AWS Developers Slack at #lambda-powertools - Invite, if you don't have an account

Features

Powertools for AWS Lambda (.NET) provides three core utilities:

  • Logging - provides a custom logger class that outputs structured JSON. It allows you to pass in strings or more complex objects, and will take care of serializing the log output. Common use cases—such as logging the Lambda event payload and capturing cold start information—are handled for you, including appending custom keys to the logger at anytime.

  • Metrics - makes collecting custom metrics from your application simple, without the need to make synchronous requests to external systems. This functionality is powered by Amazon CloudWatch Embedded Metric Format (EMF), which allows for capturing metrics asynchronously.

  • Tracing - provides a simple way to send traces from functions to AWS X-Ray to provide visibility into function calls, interactions with other AWS services, or external HTTP requests. Annotations can easily be added to traces to allow filtering traces based on key information. For example, when using Tracer, a ColdStart annotation is created for you so you can easily group and analyze traces where there was an initialization overhead.

  • Parameters - provides high-level functionality to retrieve one or multiple parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, or Amazon DynamoDB. We also provide extensibility to bring your own providers.

  • Idempotency - The idempotency utility provides a simple solution to convert your Lambda functions into idempotent operations which are safe to retry.

  • Batch Processing - The batch processing utility handles partial failures when processing batches from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams.

  • Event Handler AppSync Events - The event handler AppSync Events utility provides a simple way to handle AppSync events in your Lambda functions. It allows you to easily parse the event and access the data you need, without having to write complex code.

  • Event Handler Bedrock Agent Functions - The event handler Bedrock Agent Functions utility provides a simple way to handle Amazon Bedrock agent function events in your Lambda functions. It allows you to easily parse the event and access the data you need, without having to write complex code.

Installation

The Powertools for AWS Lambda (.NET) utilities are available as NuGet packages. You can install the packages from NuGet Gallery or from Visual Studio editor by searching AWS.Lambda.Powertools* to see various utilities available.

  • AWS.Lambda.Powertools.Logging:

    dotnet add package AWS.Lambda.Powertools.Logging

  • AWS.Lambda.Powertools.Metrics:

    dotnet add package AWS.Lambda.Powertools.Metrics

  • AWS.Lambda.Powertools.Metrics.AspNetCore:

    dotnet add package AWS.Lambda.Powertools.Metrics.AspNetCore

  • AWS.Lambda.Powertools.Tracing:

    dotnet add package AWS.Lambda.Powertools.Tracing

  • AWS.Lambda.Powertools.Parameters:

    dotnet add package AWS.Lambda.Powertools.Parameters

  • AWS.Lambda.Powertools.Idempotency:

    dotnet add package AWS.Lambda.Powertools.Idempotency

  • AWS.Lambda.Powertools.BatchProcessing:

    dotnet add package AWS.Lambda.Powertools.BatchProcessing

  • AWS.Lambda.Powertools.EventHandler.AppSyncEvents:

    dotnet add package AWS.Lambda.Powertools.EventHandler

  • AWS.Lambda.Powertools.EventHandler.BedrockAgentFunction:

    dotnet add package AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction

  • AWS.Lambda.Powertools.Kafka.Avro:

    dotnet add package AWS.Lambda.Powertools.Kafka.Avro

  • AWS.Lambda.Powertools.Kafka.Json:

    dotnet add package AWS.Lambda.Powertools.Kafka.Json

  • AWS.Lambda.Powertools.Kafka.Protobuf:

    dotnet add package AWS.Lambda.Powertools.Kafka.Protobuf

Examples

We have provided examples focused specifically on each of the utilities. Each solution comes with an AWS Serverless Application Model (AWS SAM) templates to run your functions as a Zip package using the AWS Lambda .NET 8 managed runtime; or as a container package using the AWS base images for .NET.

  • Logging example
  • Metrics example
  • Tracing example
  • Serverless API example
  • Parameters example
  • Idempotency example
  • Batch Processing example

Other members of the Powertools for AWS Lambda family

Not using .NET? No problem, we have you covered. Here are the other members of the Powertools for AWS Lambda family:

  • Powertools for AWS Lambda (Python)
  • Powertools for AWS Lambda (Java)
  • Powertools for AWS Lambda (TypeScript)

How to support Powertools for AWS Lambda (.NET)?

Becoming a reference customer

Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (.NET), you can request to have your name and logo added to the README file by raising a Support Powertools for AWS Lambda (.NET) (become a reference) issue.

The following companies, among others, use Powertools:

  • Caylent
  • Instil Software
  • Pushpay

Sharing your work

Share what you did with Powertools for AWS Lambda (.NET) . Blog post, workshops, presentation, sample apps and others. Check out what the community has already shared about Powertools for AWS Lambda (.NET) here.

Contributing

We welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our contributing guidelines and help make this project more accessible.

Credits

  • Structured logging initial implementation from aws-lambda-logging
  • Powertools for AWS Lambda (.NET) idea DAZN Powertools

Connect

  • Powertools for AWS Lambda on Discord: #dotnet - Invite link
  • Email:

Security disclosures

If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions here or email AWS security directly.

License

This project is licensed under the Apache-2.0 License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#awsaws-lambdaaws-serverlessc-sharp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理