Skip to content

feat: add ECS tRPC API#507

Open
jdebuseamazon wants to merge 2 commits intoawslabs:mainfrom
jdebuseamazon:jdebuseamazon/ecs-trpc-api
Open

feat: add ECS tRPC API#507
jdebuseamazon wants to merge 2 commits intoawslabs:mainfrom
jdebuseamazon:jdebuseamazon/ecs-trpc-api

Conversation

@jdebuseamazon
Copy link
Copy Markdown
Collaborator

Reason for this change

Adds support for ECS backed tRPC API, supporting use cases such as long running requests and consistent low latency responses.

Description of changes

Added similar generator code to the Lambda backed tRPC API but backed by ECS rather than Lambda, along with documentation

Description of how you validated changes

Ran tests

pnpm nx run @aws/nx-plugin:test
pnpm nx run-many --target build

Followed the quick start guide and added the new ECS tRPC API alongside the Lambda backed tRPC API, and confirmed that calls to the echo function successfully returned the expected responses. The server was tested in both local and deployed mode.

Checklist


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

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 81.66667% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.32%. Comparing base (763374d) to head (83c1328).

Files with missing lines Patch % Lines
...-plugin/src/utils/ecs-constructs/ecs-constructs.ts 61.11% 3 Missing and 4 partials ⚠️
packages/nx-plugin/src/connection/generator.ts 40.00% 2 Missing and 1 partial ⚠️
packages/nx-plugin/src/ecs/trpc/generator.ts 96.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #507      +/-   ##
==========================================
- Coverage   91.52%   91.32%   -0.21%     
==========================================
  Files          88       90       +2     
  Lines        3116     3170      +54     
  Branches      681      686       +5     
==========================================
+ Hits         2852     2895      +43     
- Misses        103      109       +6     
- Partials      161      166       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants