Goa.Functions.Core
0.8.0-preview
dotnet add package Goa.Functions.Core --version 0.8.0-preview
NuGet\Install-Package Goa.Functions.Core -Version 0.8.0-preview
<PackageReference Include="Goa.Functions.Core" Version="0.8.0-preview" />
<PackageVersion Include="Goa.Functions.Core" Version="0.8.0-preview" />
<PackageReference Include="Goa.Functions.Core" />
paket add Goa.Functions.Core --version 0.8.0-preview
#r "nuget: Goa.Functions.Core, 0.8.0-preview"
#:package Goa.Functions.Core@0.8.0-preview
#addin nuget:?package=Goa.Functions.Core&version=0.8.0-preview&prerelease
#tool nuget:?package=Goa.Functions.Core&version=0.8.0-preview&prerelease
Goa.Functions.Core
Core runtime and bootstrapping functionality for high-performance AWS Lambda functions. This package provides the foundational components for building Lambda functions with the Goa framework.
Installation
dotnet add package Goa.Functions.Core
Features
- Native AOT support for faster Lambda cold starts
- Built-in dependency injection with Microsoft.Extensions.DependencyInjection
- Configuration management with environment variables
- Structured logging support
- Lambda runtime abstraction and bootstrapping
- Minimal overhead and optimized performance
Usage
Basic Lambda Function
using Goa.Functions.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
// Configure services
var builder = Host.CreateDefaultBuilder(args)
.UseLambdaLifecycle()
.WithServices(services =>
{
services.AddScoped<IMyService, MyService>();
services.AddLogging();
});
// Build and run as Lambda function
var function = new MyLambdaFunction(/* inject dependencies */);
var runnable = new Runnable(builder);
await runnable.RunAsync();
public class MyLambdaFunction : ILambdaFunction<string, string>
{
private readonly IMyService _service;
private readonly ILogger<MyLambdaFunction> _logger;
public MyLambdaFunction(IMyService service, ILogger<MyLambdaFunction> logger)
{
_service = service;
_logger = logger;
}
public async Task<string> InvokeAsync(string request, CancellationToken cancellationToken = default)
{
_logger.LogInformation("Processing request: {Request}", request);
var result = await _service.ProcessAsync(request);
_logger.LogInformation("Processing complete");
return result;
}
}
Using LambdaBootstrapService
using Goa.Functions.Core;
using Goa.Functions.Core.Bootstrapping;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System.Text.Json.Serialization;
public class Program
{
public static async Task Main(string[] args)
{
var host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>
{
services.AddScoped<IDataProcessor, DataProcessor>();
services.AddHostedService<LambdaBootstrapService<string, string>>();
})
.Build();
await host.RunAsync();
}
}
Custom Runtime Configuration
var builder = Host.CreateDefaultBuilder(args)
.UseLambdaLifecycle()
.WithServices(services =>
{
// Add your services
services.AddScoped<IRepository, Repository>();
})
.WithConfiguration((context, config) =>
{
// Add custom configuration sources
config.AddEnvironmentVariables();
});
Key Interfaces
IRunnable- Interface for running Lambda functionsILambdaFunction<TRequest, TResponse>- Base interface for Lambda function handlersILambdaBuilder- Builder interface for configuring Lambda functionsILambdaRuntimeClient- Interface for Lambda runtime communication
Documentation
For more information and examples, visit the main Goa documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Goa.Core (>= 0.8.0-preview)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Microsoft.Extensions.Hosting (>= 10.0.2)
- Microsoft.Extensions.Logging (>= 10.0.2)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Goa.Functions.Core:
| Package | Downloads |
|---|---|
|
Goa.Functions.ApiGateway
API Gateway integration with V1/V2 payload support for high-performance AWS Lambda functions |
|
|
Goa.Functions.Sqs
SQS message processing for high-performance AWS Lambda functions |
|
|
Goa.Functions.Dynamo
DynamoDB stream processing for high-performance AWS Lambda functions |
|
|
Goa.Functions.S3
S3 event processing for high-performance AWS Lambda functions |
|
|
Goa.Functions.EventBridge
EventBridge function integration for high-performance AWS Lambda functions |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.0-preview | 196 | 3/17/2026 |
| 0.7.8-preview | 97 | 3/3/2026 |
| 0.7.7-preview | 66 | 3/3/2026 |
| 0.7.6-preview | 64 | 3/3/2026 |
| 0.7.5-preview | 70 | 3/2/2026 |
| 0.7.4-preview | 75 | 3/1/2026 |
| 0.7.3-preview | 72 | 2/28/2026 |
| 0.7.2-preview | 90 | 2/23/2026 |
| 0.7.1-preview | 198 | 1/26/2026 |
| 0.7.0-preview | 68 | 1/26/2026 |
| 0.2.1-preview | 124 | 1/20/2026 |
| 0.2.0-preview | 146 | 1/14/2026 |
| 0.1.9-preview | 144 | 1/1/2026 |
| 0.1.8-preview | 381 | 12/15/2025 |
| 0.1.7-preview | 220 | 12/15/2025 |
| 0.1.6-preview | 226 | 12/15/2025 |
| 0.1.5-preview | 244 | 12/15/2025 |
| 0.1.4-preview | 243 | 12/15/2025 |
| 0.1.3-preview | 114 | 12/12/2025 |
| 0.1.2-preview | 433 | 12/11/2025 |