-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add ElastiCache (Valkey) message queue template #1309
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
base: main
Are you sure you want to change the base?
Conversation
Demonstrates Streams with consumer groups for message queue functionality in Vercel Functions. Includes: - Contact form message producer (POST /api/messages) - Consumer group message processor with XREADGROUP and XAUTOCLAIM (GET /api/messages) - Message acknowledgement endpoint (DELETE /api/messages) - UI components for form submission and message processing - valkey-glide client integration with proper error handling
|
@vasigorc is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
acarbonetto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting idea, to you message processing instead of a basic API.
| return { | ||
| valid: true, | ||
| data: { | ||
| name: data.name.trim(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why trim?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, like on two lines below, the intent is to trim trailing white spaces/tabs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. But maybe the extra whitespace is desired.
And if not, garbage in, garbage out.
| // Clear form | ||
| setName('') | ||
| setEmail('') | ||
| setMessage('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd suggest not clearing the form? But I dont have strong feelings.
Description
Adds a template demonstrating AWS ElastiCache integration for message queue functionality using Redis Streams.
What this template shows
Type of Change
Simple demo flow looks like this:
Screen.Recording.2025-11-25.at.4.13.35.PM.mov
New Example Checklist
npm run new-examplewas used to create the example